AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 AttachmentContent& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_sizeHasBeenSet = true; m_size = value; }
61 inline AttachmentContent& WithSize(long long value) { SetSize(value); return *this;}
63
65
68 inline const Aws::String& GetHash() const { return m_hash; }
69 inline bool HashHasBeenSet() const { return m_hashHasBeenSet; }
70 template<typename HashT = Aws::String>
71 void SetHash(HashT&& value) { m_hashHasBeenSet = true; m_hash = std::forward<HashT>(value); }
72 template<typename HashT = Aws::String>
73 AttachmentContent& WithHash(HashT&& value) { SetHash(std::forward<HashT>(value)); return *this;}
75
77
80 inline AttachmentHashType GetHashType() const { return m_hashType; }
81 inline bool HashTypeHasBeenSet() const { return m_hashTypeHasBeenSet; }
82 inline void SetHashType(AttachmentHashType value) { m_hashTypeHasBeenSet = true; m_hashType = value; }
83 inline AttachmentContent& WithHashType(AttachmentHashType value) { SetHashType(value); return *this;}
85
87
90 inline const Aws::String& GetUrl() const { return m_url; }
91 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
92 template<typename UrlT = Aws::String>
93 void SetUrl(UrlT&& value) { m_urlHasBeenSet = true; m_url = std::forward<UrlT>(value); }
94 template<typename UrlT = Aws::String>
95 AttachmentContent& WithUrl(UrlT&& value) { SetUrl(std::forward<UrlT>(value)); return *this;}
97 private:
98
99 Aws::String m_name;
100 bool m_nameHasBeenSet = false;
101
102 long long m_size{0};
103 bool m_sizeHasBeenSet = false;
104
105 Aws::String m_hash;
106 bool m_hashHasBeenSet = false;
107
109 bool m_hashTypeHasBeenSet = false;
110
111 Aws::String m_url;
112 bool m_urlHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace SSM
117} // 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