AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const Owner& GetOwner() const{ return m_owner; }
62 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
63 inline void SetOwner(const Owner& value) { m_ownerHasBeenSet = true; m_owner = value; }
64 inline void SetOwner(Owner&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
65 inline Source& WithOwner(const Owner& value) { SetOwner(value); return *this;}
66 inline Source& WithOwner(Owner&& value) { SetOwner(std::move(value)); return *this;}
68
70
81 inline const Aws::String& GetSourceIdentifier() const{ return m_sourceIdentifier; }
82 inline bool SourceIdentifierHasBeenSet() const { return m_sourceIdentifierHasBeenSet; }
83 inline void SetSourceIdentifier(const Aws::String& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = value; }
84 inline void SetSourceIdentifier(Aws::String&& value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier = std::move(value); }
85 inline void SetSourceIdentifier(const char* value) { m_sourceIdentifierHasBeenSet = true; m_sourceIdentifier.assign(value); }
86 inline Source& WithSourceIdentifier(const Aws::String& value) { SetSourceIdentifier(value); return *this;}
87 inline Source& WithSourceIdentifier(Aws::String&& value) { SetSourceIdentifier(std::move(value)); return *this;}
88 inline Source& WithSourceIdentifier(const char* value) { SetSourceIdentifier(value); return *this;}
90
92
101 inline const Aws::Vector<SourceDetail>& GetSourceDetails() const{ return m_sourceDetails; }
102 inline bool SourceDetailsHasBeenSet() const { return m_sourceDetailsHasBeenSet; }
103 inline void SetSourceDetails(const Aws::Vector<SourceDetail>& value) { m_sourceDetailsHasBeenSet = true; m_sourceDetails = value; }
104 inline void SetSourceDetails(Aws::Vector<SourceDetail>&& value) { m_sourceDetailsHasBeenSet = true; m_sourceDetails = std::move(value); }
105 inline Source& WithSourceDetails(const Aws::Vector<SourceDetail>& value) { SetSourceDetails(value); return *this;}
106 inline Source& WithSourceDetails(Aws::Vector<SourceDetail>&& value) { SetSourceDetails(std::move(value)); return *this;}
107 inline Source& AddSourceDetails(const SourceDetail& value) { m_sourceDetailsHasBeenSet = true; m_sourceDetails.push_back(value); return *this; }
108 inline Source& AddSourceDetails(SourceDetail&& value) { m_sourceDetailsHasBeenSet = true; m_sourceDetails.push_back(std::move(value)); return *this; }
110
112
116 inline const CustomPolicyDetails& GetCustomPolicyDetails() const{ return m_customPolicyDetails; }
117 inline bool CustomPolicyDetailsHasBeenSet() const { return m_customPolicyDetailsHasBeenSet; }
118 inline void SetCustomPolicyDetails(const CustomPolicyDetails& value) { m_customPolicyDetailsHasBeenSet = true; m_customPolicyDetails = value; }
119 inline void SetCustomPolicyDetails(CustomPolicyDetails&& value) { m_customPolicyDetailsHasBeenSet = true; m_customPolicyDetails = std::move(value); }
120 inline Source& WithCustomPolicyDetails(const CustomPolicyDetails& value) { SetCustomPolicyDetails(value); return *this;}
121 inline Source& WithCustomPolicyDetails(CustomPolicyDetails&& value) { SetCustomPolicyDetails(std::move(value)); return *this;}
123 private:
124
125 Owner m_owner;
126 bool m_ownerHasBeenSet = false;
127
128 Aws::String m_sourceIdentifier;
129 bool m_sourceIdentifierHasBeenSet = false;
130
131 Aws::Vector<SourceDetail> m_sourceDetails;
132 bool m_sourceDetailsHasBeenSet = false;
133
134 CustomPolicyDetails m_customPolicyDetails;
135 bool m_customPolicyDetailsHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace ConfigService
140} // namespace Aws
Source & WithSourceIdentifier(const Aws::String &value)
Definition Source.h:86
void SetCustomPolicyDetails(CustomPolicyDetails &&value)
Definition Source.h:119
Source & WithOwner(const Owner &value)
Definition Source.h:65
AWS_CONFIGSERVICE_API Source & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOwner(Owner &&value)
Definition Source.h:64
bool CustomPolicyDetailsHasBeenSet() const
Definition Source.h:117
const CustomPolicyDetails & GetCustomPolicyDetails() const
Definition Source.h:116
void SetOwner(const Owner &value)
Definition Source.h:63
void SetSourceIdentifier(const char *value)
Definition Source.h:85
const Owner & GetOwner() const
Definition Source.h:61
const Aws::String & GetSourceIdentifier() const
Definition Source.h:81
bool SourceIdentifierHasBeenSet() const
Definition Source.h:82
AWS_CONFIGSERVICE_API Source()
Source & WithSourceDetails(Aws::Vector< SourceDetail > &&value)
Definition Source.h:106
Source & AddSourceDetails(SourceDetail &&value)
Definition Source.h:108
Source & WithCustomPolicyDetails(CustomPolicyDetails &&value)
Definition Source.h:121
Source & WithOwner(Owner &&value)
Definition Source.h:66
Source & WithSourceIdentifier(Aws::String &&value)
Definition Source.h:87
Source & WithSourceDetails(const Aws::Vector< SourceDetail > &value)
Definition Source.h:105
void SetSourceIdentifier(Aws::String &&value)
Definition Source.h:84
Source & WithCustomPolicyDetails(const CustomPolicyDetails &value)
Definition Source.h:120
void SetSourceDetails(const Aws::Vector< SourceDetail > &value)
Definition Source.h:103
const Aws::Vector< SourceDetail > & GetSourceDetails() const
Definition Source.h:101
Source & WithSourceIdentifier(const char *value)
Definition Source.h:88
Source & AddSourceDetails(const SourceDetail &value)
Definition Source.h:107
bool SourceDetailsHasBeenSet() const
Definition Source.h:102
void SetSourceDetails(Aws::Vector< SourceDetail > &&value)
Definition Source.h:104
void SetSourceIdentifier(const Aws::String &value)
Definition Source.h:83
AWS_CONFIGSERVICE_API Source(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCustomPolicyDetails(const CustomPolicyDetails &value)
Definition Source.h:118
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue