AWS SDK for C++

AWS SDK for C++ Version 1.11.787

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
28class Artifact {
29 public:
30 AWS_SECURITYAGENT_API Artifact() = default;
31 AWS_SECURITYAGENT_API Artifact(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYAGENT_API Artifact& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetContents() const { return m_contents; }
40 inline bool ContentsHasBeenSet() const { return m_contentsHasBeenSet; }
41 template <typename ContentsT = Aws::String>
42 void SetContents(ContentsT&& value) {
43 m_contentsHasBeenSet = true;
44 m_contents = std::forward<ContentsT>(value);
45 }
46 template <typename ContentsT = Aws::String>
47 Artifact& WithContents(ContentsT&& value) {
48 SetContents(std::forward<ContentsT>(value));
49 return *this;
50 }
52
54
57 inline ArtifactType GetType() const { return m_type; }
58 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
59 inline void SetType(ArtifactType value) {
60 m_typeHasBeenSet = true;
61 m_type = value;
62 }
64 SetType(value);
65 return *this;
66 }
68 private:
69 Aws::String m_contents;
70
72 bool m_contentsHasBeenSet = false;
73 bool m_typeHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace SecurityAgent
78} // namespace Aws
void SetContents(ContentsT &&value)
Definition Artifact.h:42
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:39
void SetType(ArtifactType value)
Definition Artifact.h:59
AWS_SECURITYAGENT_API Artifact()=default
Artifact & WithType(ArtifactType value)
Definition Artifact.h:63
Artifact & WithContents(ContentsT &&value)
Definition Artifact.h:47
ArtifactType GetType() const
Definition Artifact.h:57
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