AWS SDK for C++  1.9.153
AWS SDK for C++
ListDomainsResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace CodeArtifact
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
42  inline const Aws::Vector<DomainSummary>& GetDomains() const{ return m_domains; }
43 
49  inline void SetDomains(const Aws::Vector<DomainSummary>& value) { m_domains = value; }
50 
56  inline void SetDomains(Aws::Vector<DomainSummary>&& value) { m_domains = std::move(value); }
57 
63  inline ListDomainsResult& WithDomains(const Aws::Vector<DomainSummary>& value) { SetDomains(value); return *this;}
64 
70  inline ListDomainsResult& WithDomains(Aws::Vector<DomainSummary>&& value) { SetDomains(std::move(value)); return *this;}
71 
77  inline ListDomainsResult& AddDomains(const DomainSummary& value) { m_domains.push_back(value); return *this; }
78 
84  inline ListDomainsResult& AddDomains(DomainSummary&& value) { m_domains.push_back(std::move(value)); return *this; }
85 
86 
91  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
92 
97  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
98 
103  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
104 
109  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
110 
115  inline ListDomainsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
116 
121  inline ListDomainsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
122 
127  inline ListDomainsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
128 
129  private:
130 
131  Aws::Vector<DomainSummary> m_domains;
132 
133  Aws::String m_nextToken;
134  };
135 
136 } // namespace Model
137 } // namespace CodeArtifact
138 } // namespace Aws
Aws::CodeArtifact::Model::ListDomainsResult::WithNextToken
ListDomainsResult & WithNextToken(Aws::String &&value)
Definition: ListDomainsResult.h:121
Aws::CodeArtifact::Model::ListDomainsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListDomainsResult.h:91
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
CodeArtifact_EXPORTS.h
DomainSummary.h
Aws::CodeArtifact::Model::ListDomainsResult::ListDomainsResult
ListDomainsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeArtifact::Model::ListDomainsResult::operator=
ListDomainsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeArtifact::Model::ListDomainsResult::WithNextToken
ListDomainsResult & WithNextToken(const Aws::String &value)
Definition: ListDomainsResult.h:115
Aws::CodeArtifact::Model::ListDomainsResult::WithDomains
ListDomainsResult & WithDomains(const Aws::Vector< DomainSummary > &value)
Definition: ListDomainsResult.h:63
Aws::CodeArtifact::Model::ListDomainsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListDomainsResult.h:109
Aws::CodeArtifact::Model::ListDomainsResult::ListDomainsResult
ListDomainsResult()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::CodeArtifact::Model::ListDomainsResult::AddDomains
ListDomainsResult & AddDomains(const DomainSummary &value)
Definition: ListDomainsResult.h:77
Aws::CodeArtifact::Model::ListDomainsResult::GetDomains
const Aws::Vector< DomainSummary > & GetDomains() const
Definition: ListDomainsResult.h:42
Aws::CodeArtifact::Model::ListDomainsResult::SetDomains
void SetDomains(const Aws::Vector< DomainSummary > &value)
Definition: ListDomainsResult.h:49
AWSString.h
Aws::CodeArtifact::Model::ListDomainsResult
Definition: ListDomainsResult.h:30
Aws::CodeArtifact::Model::ListDomainsResult::AddDomains
ListDomainsResult & AddDomains(DomainSummary &&value)
Definition: ListDomainsResult.h:84
Aws::CodeArtifact::Model::ListDomainsResult::SetDomains
void SetDomains(Aws::Vector< DomainSummary > &&value)
Definition: ListDomainsResult.h:56
Aws::CodeArtifact::Model::ListDomainsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListDomainsResult.h:103
AWS_CODEARTIFACT_API
#define AWS_CODEARTIFACT_API
Definition: CodeArtifact_EXPORTS.h:28
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeArtifact::Model::DomainSummary
Definition: DomainSummary.h:38
Aws::CodeArtifact::Model::ListDomainsResult::WithNextToken
ListDomainsResult & WithNextToken(const char *value)
Definition: ListDomainsResult.h:127
Aws::CodeArtifact::Model::ListDomainsResult::WithDomains
ListDomainsResult & WithDomains(Aws::Vector< DomainSummary > &&value)
Definition: ListDomainsResult.h:70
Aws::CodeArtifact::Model::ListDomainsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListDomainsResult.h:97