AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AttachmentContent.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/model/AttachmentHashType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SSM
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SSM_API AttachmentContent();
40
41
43
46 inline const Aws::String& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline AttachmentContent& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline AttachmentContent& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline AttachmentContent& WithName(const char* value) { SetName(value); return *this;}
55
57
60 inline long long GetSize() const{ return m_size; }
61 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
62 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
63 inline AttachmentContent& WithSize(long long value) { SetSize(value); return *this;}
65
67
70 inline const Aws::String& GetHash() const{ return m_hash; }
71 inline bool HashHasBeenSet() const { return m_hashHasBeenSet; }
72 inline void SetHash(const Aws::String& value) { m_hashHasBeenSet = true; m_hash = value; }
73 inline void SetHash(Aws::String&& value) { m_hashHasBeenSet = true; m_hash = std::move(value); }
74 inline void SetHash(const char* value) { m_hashHasBeenSet = true; m_hash.assign(value); }
75 inline AttachmentContent& WithHash(const Aws::String& value) { SetHash(value); return *this;}
76 inline AttachmentContent& WithHash(Aws::String&& value) { SetHash(std::move(value)); return *this;}
77 inline AttachmentContent& WithHash(const char* value) { SetHash(value); return *this;}
79
81
84 inline const AttachmentHashType& GetHashType() const{ return m_hashType; }
85 inline bool HashTypeHasBeenSet() const { return m_hashTypeHasBeenSet; }
86 inline void SetHashType(const AttachmentHashType& value) { m_hashTypeHasBeenSet = true; m_hashType = value; }
87 inline void SetHashType(AttachmentHashType&& value) { m_hashTypeHasBeenSet = true; m_hashType = std::move(value); }
88 inline AttachmentContent& WithHashType(const AttachmentHashType& value) { SetHashType(value); return *this;}
89 inline AttachmentContent& WithHashType(AttachmentHashType&& value) { SetHashType(std::move(value)); return *this;}
91
93
96 inline const Aws::String& GetUrl() const{ return m_url; }
97 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
98 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
99 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
100 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
101 inline AttachmentContent& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
102 inline AttachmentContent& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
103 inline AttachmentContent& WithUrl(const char* value) { SetUrl(value); return *this;}
105 private:
106
107 Aws::String m_name;
108 bool m_nameHasBeenSet = false;
109
110 long long m_size;
111 bool m_sizeHasBeenSet = false;
112
113 Aws::String m_hash;
114 bool m_hashHasBeenSet = false;
115
116 AttachmentHashType m_hashType;
117 bool m_hashTypeHasBeenSet = false;
118
119 Aws::String m_url;
120 bool m_urlHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace SSM
125} // namespace Aws
void SetHashType(const AttachmentHashType &value)
void SetHash(const Aws::String &value)
AttachmentContent & WithHashType(AttachmentHashType &&value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SSM_API AttachmentContent(Aws::Utils::Json::JsonView jsonValue)
void SetHashType(AttachmentHashType &&value)
AttachmentContent & WithName(const Aws::String &value)
const Aws::String & GetName() const
void SetName(Aws::String &&value)
AttachmentContent & WithHashType(const AttachmentHashType &value)
AttachmentContent & WithHash(const Aws::String &value)
void SetUrl(const Aws::String &value)
AttachmentContent & WithSize(long long value)
AttachmentContent & WithUrl(const Aws::String &value)
const Aws::String & GetHash() const
void SetName(const Aws::String &value)
AWS_SSM_API AttachmentContent & operator=(Aws::Utils::Json::JsonView jsonValue)
AttachmentContent & WithUrl(const char *value)
void SetUrl(Aws::String &&value)
void SetHash(Aws::String &&value)
const Aws::String & GetUrl() const
const AttachmentHashType & GetHashType() const
AttachmentContent & WithUrl(Aws::String &&value)
AttachmentContent & WithName(Aws::String &&value)
AttachmentContent & WithHash(Aws::String &&value)
AttachmentContent & WithHash(const char *value)
AttachmentContent & WithName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue