AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AttachmentContent.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ssm/SSM_EXPORTS.h>
9#include <aws/ssm/model/AttachmentHashType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SSM {
21namespace Model {
22
30 public:
31 AWS_SSM_API AttachmentContent() = default;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 AttachmentContent& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline long long GetSize() const { return m_size; }
59 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
60 inline void SetSize(long long value) {
61 m_sizeHasBeenSet = true;
62 m_size = value;
63 }
64 inline AttachmentContent& WithSize(long long value) {
65 SetSize(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetHash() const { return m_hash; }
75 inline bool HashHasBeenSet() const { return m_hashHasBeenSet; }
76 template <typename HashT = Aws::String>
77 void SetHash(HashT&& value) {
78 m_hashHasBeenSet = true;
79 m_hash = std::forward<HashT>(value);
80 }
81 template <typename HashT = Aws::String>
82 AttachmentContent& WithHash(HashT&& value) {
83 SetHash(std::forward<HashT>(value));
84 return *this;
85 }
87
89
92 inline AttachmentHashType GetHashType() const { return m_hashType; }
93 inline bool HashTypeHasBeenSet() const { return m_hashTypeHasBeenSet; }
94 inline void SetHashType(AttachmentHashType value) {
95 m_hashTypeHasBeenSet = true;
96 m_hashType = value;
97 }
99 SetHashType(value);
100 return *this;
101 }
103
105
108 inline const Aws::String& GetUrl() const { return m_url; }
109 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
110 template <typename UrlT = Aws::String>
111 void SetUrl(UrlT&& value) {
112 m_urlHasBeenSet = true;
113 m_url = std::forward<UrlT>(value);
114 }
115 template <typename UrlT = Aws::String>
116 AttachmentContent& WithUrl(UrlT&& value) {
117 SetUrl(std::forward<UrlT>(value));
118 return *this;
119 }
121 private:
122 Aws::String m_name;
123
124 long long m_size{0};
125
126 Aws::String m_hash;
127
129
130 Aws::String m_url;
131 bool m_nameHasBeenSet = false;
132 bool m_sizeHasBeenSet = false;
133 bool m_hashHasBeenSet = false;
134 bool m_hashTypeHasBeenSet = false;
135 bool m_urlHasBeenSet = false;
136};
137
138} // namespace Model
139} // namespace SSM
140} // namespace Aws
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SSM_API AttachmentContent(Aws::Utils::Json::JsonView jsonValue)
AttachmentContent & WithUrl(UrlT &&value)
const Aws::String & GetName() const
void SetHashType(AttachmentHashType value)
AttachmentContent & WithSize(long long value)
AWS_SSM_API AttachmentContent()=default
AttachmentHashType GetHashType() const
AttachmentContent & WithHashType(AttachmentHashType value)
const Aws::String & GetHash() const
AWS_SSM_API AttachmentContent & operator=(Aws::Utils::Json::JsonView jsonValue)
AttachmentContent & WithName(NameT &&value)
AttachmentContent & WithHash(HashT &&value)
const Aws::String & GetUrl() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue