AWS SDK for C++  1.8.126
AWS SDK for C++
ListPublishingDestinationsResult.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 GuardDuty
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
41  inline const Aws::Vector<Destination>& GetDestinations() const{ return m_destinations; }
42 
47  inline void SetDestinations(const Aws::Vector<Destination>& value) { m_destinations = value; }
48 
53  inline void SetDestinations(Aws::Vector<Destination>&& value) { m_destinations = std::move(value); }
54 
59  inline ListPublishingDestinationsResult& WithDestinations(const Aws::Vector<Destination>& value) { SetDestinations(value); return *this;}
60 
65  inline ListPublishingDestinationsResult& WithDestinations(Aws::Vector<Destination>&& value) { SetDestinations(std::move(value)); return *this;}
66 
71  inline ListPublishingDestinationsResult& AddDestinations(const Destination& value) { m_destinations.push_back(value); return *this; }
72 
77  inline ListPublishingDestinationsResult& AddDestinations(Destination&& value) { m_destinations.push_back(std::move(value)); return *this; }
78 
79 
86  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
87 
94  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
95 
102  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
103 
110  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
111 
118  inline ListPublishingDestinationsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
119 
126  inline ListPublishingDestinationsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
127 
134  inline ListPublishingDestinationsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
135 
136  private:
137 
138  Aws::Vector<Destination> m_destinations;
139 
140  Aws::String m_nextToken;
141  };
142 
143 } // namespace Model
144 } // namespace GuardDuty
145 } // namespace Aws
Aws::GuardDuty::Model::ListPublishingDestinationsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListPublishingDestinationsResult.h:94
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::GuardDuty::Model::ListPublishingDestinationsResult::WithNextToken
ListPublishingDestinationsResult & WithNextToken(const char *value)
Definition: ListPublishingDestinationsResult.h:134
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GuardDuty::Model::ListPublishingDestinationsResult::ListPublishingDestinationsResult
ListPublishingDestinationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GuardDuty::Model::ListPublishingDestinationsResult::GetDestinations
const Aws::Vector< Destination > & GetDestinations() const
Definition: ListPublishingDestinationsResult.h:41
AWSVector.h
Aws::GuardDuty::Model::ListPublishingDestinationsResult::WithNextToken
ListPublishingDestinationsResult & WithNextToken(Aws::String &&value)
Definition: ListPublishingDestinationsResult.h:126
Aws::GuardDuty::Model::ListPublishingDestinationsResult
Definition: ListPublishingDestinationsResult.h:30
Aws::GuardDuty::Model::ListPublishingDestinationsResult::AddDestinations
ListPublishingDestinationsResult & AddDestinations(const Destination &value)
Definition: ListPublishingDestinationsResult.h:71
Aws::GuardDuty::Model::ListPublishingDestinationsResult::SetDestinations
void SetDestinations(Aws::Vector< Destination > &&value)
Definition: ListPublishingDestinationsResult.h:53
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::ListPublishingDestinationsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListPublishingDestinationsResult.h:102
Aws::GuardDuty::Model::ListPublishingDestinationsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListPublishingDestinationsResult.h:110
Aws::GuardDuty::Model::ListPublishingDestinationsResult::SetDestinations
void SetDestinations(const Aws::Vector< Destination > &value)
Definition: ListPublishingDestinationsResult.h:47
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
AWSString.h
Aws::GuardDuty::Model::ListPublishingDestinationsResult::operator=
ListPublishingDestinationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::GuardDuty::Model::ListPublishingDestinationsResult::WithNextToken
ListPublishingDestinationsResult & WithNextToken(const Aws::String &value)
Definition: ListPublishingDestinationsResult.h:118
Aws::GuardDuty::Model::ListPublishingDestinationsResult::ListPublishingDestinationsResult
ListPublishingDestinationsResult()
Destination.h
Aws::GuardDuty::Model::ListPublishingDestinationsResult::WithDestinations
ListPublishingDestinationsResult & WithDestinations(const Aws::Vector< Destination > &value)
Definition: ListPublishingDestinationsResult.h:59
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::ListPublishingDestinationsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListPublishingDestinationsResult.h:86
Aws::GuardDuty::Model::Destination
Definition: Destination.h:35
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::ListPublishingDestinationsResult::WithDestinations
ListPublishingDestinationsResult & WithDestinations(Aws::Vector< Destination > &&value)
Definition: ListPublishingDestinationsResult.h:65
Aws::GuardDuty::Model::ListPublishingDestinationsResult::AddDestinations
ListPublishingDestinationsResult & AddDestinations(Destination &&value)
Definition: ListPublishingDestinationsResult.h:77