AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
Artifact.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityagent/SecurityAgent_EXPORTS.h>
9#include <aws/securityagent/model/ArtifactType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityAgent {
21namespace Model {
22
29class Artifact {
30 public:
31 AWS_SECURITYAGENT_API Artifact() = default;
32 AWS_SECURITYAGENT_API Artifact(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYAGENT_API Artifact& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetContents() const { return m_contents; }
41 inline bool ContentsHasBeenSet() const { return m_contentsHasBeenSet; }
42 template <typename ContentsT = Aws::String>
43 void SetContents(ContentsT&& value) {
44 m_contentsHasBeenSet = true;
45 m_contents = std::forward<ContentsT>(value);
46 }
47 template <typename ContentsT = Aws::String>
48 Artifact& WithContents(ContentsT&& value) {
49 SetContents(std::forward<ContentsT>(value));
50 return *this;
51 }
53
55
58 inline ArtifactType GetType() const { return m_type; }
59 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 inline void SetType(ArtifactType value) {
61 m_typeHasBeenSet = true;
62 m_type = value;
63 }
65 SetType(value);
66 return *this;
67 }
69 private:
70 Aws::String m_contents;
71
73 bool m_contentsHasBeenSet = false;
74 bool m_typeHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace SecurityAgent
79} // namespace Aws
void SetContents(ContentsT &&value)
Definition Artifact.h:43
AWS_SECURITYAGENT_API Artifact(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYAGENT_API Artifact & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetContents() const
Definition Artifact.h:40
void SetType(ArtifactType value)
Definition Artifact.h:60
AWS_SECURITYAGENT_API Artifact()=default
Artifact & WithType(ArtifactType value)
Definition Artifact.h:64
Artifact & WithContents(ContentsT &&value)
Definition Artifact.h:48
ArtifactType GetType() const
Definition Artifact.h:58
AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue