AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Source.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/model/CustomPolicyDetails.h>
9#include <aws/config/model/Owner.h>
10#include <aws/config/model/SourceDetail.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ConfigService {
24namespace Model {
25
35class Source {
36 public:
37 AWS_CONFIGSERVICE_API Source() = default;
38 AWS_CONFIGSERVICE_API Source(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONFIGSERVICE_API Source& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
55 inline Owner GetOwner() const { return m_owner; }
56 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
57 inline void SetOwner(Owner value) {
58 m_ownerHasBeenSet = true;
59 m_owner = value;
60 }
61 inline Source& WithOwner(Owner value) {
62 SetOwner(value);
63 return *this;
64 }
66
68
79 inline const Aws::String& GetSourceIdentifier() const { return m_sourceIdentifier; }
80 inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
81 template <typename SourceIdentifierT = Aws::String>
82 void SetSourceIdentifier(SourceIdentifierT&& value) {
83 m_sourceIdentifierHasBeenSet = true;
84 m_sourceIdentifier = std::forward<SourceIdentifierT>(value);
85 }
86 template <typename SourceIdentifierT = Aws::String>
87 Source& WithSourceIdentifier(SourceIdentifierT&& value) {
88 SetSourceIdentifier(std::forward<SourceIdentifierT>(value));
89 return *this;
90 }
92
94
103 inline const Aws::Vector<SourceDetail>& GetSourceDetails() const { return m_sourceDetails; }
104 inline bool SourceDetailsHasBeenSet() const { return m_sourceDetailsHasBeenSet; }
105 template <typename SourceDetailsT = Aws::Vector<SourceDetail>>
106 void SetSourceDetails(SourceDetailsT&& value) {
107 m_sourceDetailsHasBeenSet = true;
108 m_sourceDetails = std::forward<SourceDetailsT>(value);
109 }
110 template <typename SourceDetailsT = Aws::Vector<SourceDetail>>
111 Source& WithSourceDetails(SourceDetailsT&& value) {
112 SetSourceDetails(std::forward<SourceDetailsT>(value));
113 return *this;
114 }
115 template <typename SourceDetailsT = SourceDetail>
116 Source& AddSourceDetails(SourceDetailsT&& value) {
117 m_sourceDetailsHasBeenSet = true;
118 m_sourceDetails.emplace_back(std::forward<SourceDetailsT>(value));
119 return *this;
120 }
122
124
128 inline const CustomPolicyDetails& GetCustomPolicyDetails() const { return m_customPolicyDetails; }
129 inline bool CustomPolicyDetailsHasBeenSet() const { return m_customPolicyDetailsHasBeenSet; }
130 template <typename CustomPolicyDetailsT = CustomPolicyDetails>
131 void SetCustomPolicyDetails(CustomPolicyDetailsT&& value) {
132 m_customPolicyDetailsHasBeenSet = true;
133 m_customPolicyDetails = std::forward<CustomPolicyDetailsT>(value);
134 }
135 template <typename CustomPolicyDetailsT = CustomPolicyDetails>
136 Source& WithCustomPolicyDetails(CustomPolicyDetailsT&& value) {
137 SetCustomPolicyDetails(std::forward<CustomPolicyDetailsT>(value));
138 return *this;
139 }
141 private:
142 Owner m_owner{Owner::NOT_SET};
143
144 Aws::String m_sourceIdentifier;
145
146 Aws::Vector<SourceDetail> m_sourceDetails;
147
148 CustomPolicyDetails m_customPolicyDetails;
149 bool m_ownerHasBeenSet = false;
150 bool m_sourceIdentifierHasBeenSet = false;
151 bool m_sourceDetailsHasBeenSet = false;
152 bool m_customPolicyDetailsHasBeenSet = false;
153};
154
155} // namespace Model
156} // namespace ConfigService
157} // namespace Aws
void SetCustomPolicyDetails(CustomPolicyDetailsT &&value)
Definition Source.h:131
Source & AddSourceDetails(SourceDetailsT &&value)
Definition Source.h:116
Source & WithSourceDetails(SourceDetailsT &&value)
Definition Source.h:111
AWS_CONFIGSERVICE_API Source & operator=(Aws::Utils::Json::JsonView jsonValue)
bool CustomPolicyDetailsHasBeenSet() const
Definition Source.h:129
AWS_CONFIGSERVICE_API Source()=default
const CustomPolicyDetails & GetCustomPolicyDetails() const
Definition Source.h:128
Source & WithOwner(Owner value)
Definition Source.h:61
Source & WithCustomPolicyDetails(CustomPolicyDetailsT &&value)
Definition Source.h:136
const Aws::String & GetSourceIdentifier() const
Definition Source.h:79
bool SourceIdentifierHasBeenSet() const
Definition Source.h:80
Source & WithSourceIdentifier(SourceIdentifierT &&value)
Definition Source.h:87
void SetSourceDetails(SourceDetailsT &&value)
Definition Source.h:106
void SetOwner(Owner value)
Definition Source.h:57
void SetSourceIdentifier(SourceIdentifierT &&value)
Definition Source.h:82
const Aws::Vector< SourceDetail > & GetSourceDetails() const
Definition Source.h:103
bool SourceDetailsHasBeenSet() const
Definition Source.h:104
AWS_CONFIGSERVICE_API Source(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue