AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
RawString.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodeDeploy {
20namespace Model {
21
29class RawString {
30 public:
31 AWS_CODEDEPLOY_API RawString() = default;
32 AWS_CODEDEPLOY_API RawString(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEDEPLOY_API RawString& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline const Aws::String& GetContent() const { return m_content; }
43 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
44 template <typename ContentT = Aws::String>
45 void SetContent(ContentT&& value) {
46 m_contentHasBeenSet = true;
47 m_content = std::forward<ContentT>(value);
48 }
49 template <typename ContentT = Aws::String>
50 RawString& WithContent(ContentT&& value) {
51 SetContent(std::forward<ContentT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetSha256() const { return m_sha256; }
61 inline bool Sha256HasBeenSet() const { return m_sha256HasBeenSet; }
62 template <typename Sha256T = Aws::String>
63 void SetSha256(Sha256T&& value) {
64 m_sha256HasBeenSet = true;
65 m_sha256 = std::forward<Sha256T>(value);
66 }
67 template <typename Sha256T = Aws::String>
68 RawString& WithSha256(Sha256T&& value) {
69 SetSha256(std::forward<Sha256T>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_content;
75
76 Aws::String m_sha256;
77 bool m_contentHasBeenSet = false;
78 bool m_sha256HasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace CodeDeploy
83} // namespace Aws
const Aws::String & GetSha256() const
Definition RawString.h:60
AWS_CODEDEPLOY_API RawString(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEDEPLOY_API RawString & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEDEPLOY_API RawString()=default
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
RawString & WithSha256(Sha256T &&value)
Definition RawString.h:68
RawString & WithContent(ContentT &&value)
Definition RawString.h:50
void SetContent(ContentT &&value)
Definition RawString.h:45
const Aws::String & GetContent() const
Definition RawString.h:42
void SetSha256(Sha256T &&value)
Definition RawString.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue