AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
Source.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/model/Owner.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/config/model/CustomPolicyDetails.h>
12#include <aws/config/model/SourceDetail.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ConfigService
26{
27namespace Model
28{
29
39 class Source
40 {
41 public:
42 AWS_CONFIGSERVICE_API Source() = default;
43 AWS_CONFIGSERVICE_API Source(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CONFIGSERVICE_API Source& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
61 inline Owner GetOwner() const { return m_owner; }
62 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
63 inline void SetOwner(Owner value) { m_ownerHasBeenSet = true; m_owner = value; }
64 inline Source& WithOwner(Owner value) { SetOwner(value); return *this;}
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) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::forward<SourceIdentifierT>(value); }
83 template<typename SourceIdentifierT = Aws::String>
84 Source& WithSourceIdentifier(SourceIdentifierT&& value) { SetSourceIdentifier(std::forward<SourceIdentifierT>(value)); return *this;}
86
88
97 inline const Aws::Vector<SourceDetail>& GetSourceDetails() const { return m_sourceDetails; }
98 inline bool SourceDetailsHasBeenSet() const { return m_sourceDetailsHasBeenSet; }
99 template<typename SourceDetailsT = Aws::Vector<SourceDetail>>
100 void SetSourceDetails(SourceDetailsT&& value) { m_sourceDetailsHasBeenSet = true; m_sourceDetails = std::forward<SourceDetailsT>(value); }
101 template<typename SourceDetailsT = Aws::Vector<SourceDetail>>
102 Source& WithSourceDetails(SourceDetailsT&& value) { SetSourceDetails(std::forward<SourceDetailsT>(value)); return *this;}
103 template<typename SourceDetailsT = SourceDetail>
104 Source& AddSourceDetails(SourceDetailsT&& value) { m_sourceDetailsHasBeenSet = true; m_sourceDetails.emplace_back(std::forward<SourceDetailsT>(value)); return *this; }
106
108
112 inline const CustomPolicyDetails& GetCustomPolicyDetails() const { return m_customPolicyDetails; }
113 inline bool CustomPolicyDetailsHasBeenSet() const { return m_customPolicyDetailsHasBeenSet; }
114 template<typename CustomPolicyDetailsT = CustomPolicyDetails>
115 void SetCustomPolicyDetails(CustomPolicyDetailsT&& value) { m_customPolicyDetailsHasBeenSet = true; m_customPolicyDetails = std::forward<CustomPolicyDetailsT>(value); }
116 template<typename CustomPolicyDetailsT = CustomPolicyDetails>
117 Source& WithCustomPolicyDetails(CustomPolicyDetailsT&& value) { SetCustomPolicyDetails(std::forward<CustomPolicyDetailsT>(value)); return *this;}
119 private:
120
121 Owner m_owner{Owner::NOT_SET};
122 bool m_ownerHasBeenSet = false;
123
124 Aws::String m_sourceIdentifier;
125 bool m_sourceIdentifierHasBeenSet = false;
126
127 Aws::Vector<SourceDetail> m_sourceDetails;
128 bool m_sourceDetailsHasBeenSet = false;
129
130 CustomPolicyDetails m_customPolicyDetails;
131 bool m_customPolicyDetailsHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace ConfigService
136} // namespace Aws
void SetCustomPolicyDetails(CustomPolicyDetailsT &&value)
Definition Source.h:115
Source & AddSourceDetails(SourceDetailsT &&value)
Definition Source.h:104
Source & WithSourceDetails(SourceDetailsT &&value)
Definition Source.h:102
AWS_CONFIGSERVICE_API Source & operator=(Aws::Utils::Json::JsonView jsonValue)
bool CustomPolicyDetailsHasBeenSet() const
Definition Source.h:113
AWS_CONFIGSERVICE_API Source()=default
const CustomPolicyDetails & GetCustomPolicyDetails() const
Definition Source.h:112
Source & WithOwner(Owner value)
Definition Source.h:64
Source & WithCustomPolicyDetails(CustomPolicyDetailsT &&value)
Definition Source.h:117
const Aws::String & GetSourceIdentifier() const
Definition Source.h:79
bool SourceIdentifierHasBeenSet() const
Definition Source.h:80
Source & WithSourceIdentifier(SourceIdentifierT &&value)
Definition Source.h:84
void SetSourceDetails(SourceDetailsT &&value)
Definition Source.h:100
void SetOwner(Owner value)
Definition Source.h:63
void SetSourceIdentifier(SourceIdentifierT &&value)
Definition Source.h:82
const Aws::Vector< SourceDetail > & GetSourceDetails() const
Definition Source.h:97
bool SourceDetailsHasBeenSet() const
Definition Source.h:98
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