AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
AppSpecContent.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace CodeDeploy {
20namespace Model {
21
31 public:
32 AWS_CODEDEPLOY_API AppSpecContent() = default;
33 AWS_CODEDEPLOY_API AppSpecContent(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CODEDEPLOY_API AppSpecContent& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CODEDEPLOY_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
49 inline const Aws::String& GetContent() const { return m_content; }
50 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
51 template <typename ContentT = Aws::String>
52 void SetContent(ContentT&& value) {
53 m_contentHasBeenSet = true;
54 m_content = std::forward<ContentT>(value);
55 }
56 template <typename ContentT = Aws::String>
57 AppSpecContent& WithContent(ContentT&& value) {
58 SetContent(std::forward<ContentT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetSha256() const { return m_sha256; }
68 inline bool Sha256HasBeenSet() const { return m_sha256HasBeenSet; }
69 template <typename Sha256T = Aws::String>
70 void SetSha256(Sha256T&& value) {
71 m_sha256HasBeenSet = true;
72 m_sha256 = std::forward<Sha256T>(value);
73 }
74 template <typename Sha256T = Aws::String>
75 AppSpecContent& WithSha256(Sha256T&& value) {
76 SetSha256(std::forward<Sha256T>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_content;
82
83 Aws::String m_sha256;
84 bool m_contentHasBeenSet = false;
85 bool m_sha256HasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace CodeDeploy
90} // namespace Aws
AppSpecContent & WithContent(ContentT &&value)
AWS_CODEDEPLOY_API AppSpecContent()=default
AWS_CODEDEPLOY_API AppSpecContent(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CODEDEPLOY_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_CODEDEPLOY_API AppSpecContent & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetSha256() const
AppSpecContent & WithSha256(Sha256T &&value)
const Aws::String & GetContent() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String