AWS SDK for C++  1.9.108
AWS SDK for C++
DescribeDestinationsResult.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 CloudWatchLogs
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<Destination>& GetDestinations() const{ return m_destinations; }
41 
45  inline void SetDestinations(const Aws::Vector<Destination>& value) { m_destinations = value; }
46 
50  inline void SetDestinations(Aws::Vector<Destination>&& value) { m_destinations = std::move(value); }
51 
55  inline DescribeDestinationsResult& WithDestinations(const Aws::Vector<Destination>& value) { SetDestinations(value); return *this;}
56 
60  inline DescribeDestinationsResult& WithDestinations(Aws::Vector<Destination>&& value) { SetDestinations(std::move(value)); return *this;}
61 
65  inline DescribeDestinationsResult& AddDestinations(const Destination& value) { m_destinations.push_back(value); return *this; }
66 
70  inline DescribeDestinationsResult& AddDestinations(Destination&& value) { m_destinations.push_back(std::move(value)); return *this; }
71 
72 
73 
74  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
75 
76 
77  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
78 
79 
80  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
81 
82 
83  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
84 
85 
86  inline DescribeDestinationsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
87 
88 
89  inline DescribeDestinationsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
90 
91 
92  inline DescribeDestinationsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
93 
94  private:
95 
96  Aws::Vector<Destination> m_destinations;
97 
98  Aws::String m_nextToken;
99  };
100 
101 } // namespace Model
102 } // namespace CloudWatchLogs
103 } // namespace Aws
Aws::CloudWatchLogs::Model::DescribeDestinationsResult::WithDestinations
DescribeDestinationsResult & WithDestinations(Aws::Vector< Destination > &&value)
Definition: DescribeDestinationsResult.h:60
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::CloudWatchLogs::Model::DescribeDestinationsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeDestinationsResult.h:80
AWS_CLOUDWATCHLOGS_API
#define AWS_CLOUDWATCHLOGS_API
Definition: CloudWatchLogs_EXPORTS.h:28
Aws::CloudWatchLogs::Model::DescribeDestinationsResult::operator=
DescribeDestinationsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CloudWatchLogs::Model::DescribeDestinationsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeDestinationsResult.h:77
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::CloudWatchLogs::Model::Destination
Definition: Destination.h:33
Aws::CloudWatchLogs::Model::DescribeDestinationsResult::DescribeDestinationsResult
DescribeDestinationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CloudWatchLogs_EXPORTS.h
Aws::CloudWatchLogs::Model::DescribeDestinationsResult
Definition: DescribeDestinationsResult.h:30
Aws::CloudWatchLogs::Model::DescribeDestinationsResult::WithNextToken
DescribeDestinationsResult & WithNextToken(Aws::String &&value)
Definition: DescribeDestinationsResult.h:89
Aws::CloudWatchLogs::Model::DescribeDestinationsResult::AddDestinations
DescribeDestinationsResult & AddDestinations(const Destination &value)
Definition: DescribeDestinationsResult.h:65
Aws::CloudWatchLogs::Model::DescribeDestinationsResult::WithNextToken
DescribeDestinationsResult & WithNextToken(const char *value)
Definition: DescribeDestinationsResult.h:92
Aws::CloudWatchLogs::Model::DescribeDestinationsResult::WithDestinations
DescribeDestinationsResult & WithDestinations(const Aws::Vector< Destination > &value)
Definition: DescribeDestinationsResult.h:55
AWSString.h
Aws::CloudWatchLogs::Model::DescribeDestinationsResult::AddDestinations
DescribeDestinationsResult & AddDestinations(Destination &&value)
Definition: DescribeDestinationsResult.h:70
Aws::CloudWatchLogs::Model::DescribeDestinationsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeDestinationsResult.h:74
Destination.h
Aws
Definition: AccessManagementClient.h:15
Aws::CloudWatchLogs::Model::DescribeDestinationsResult::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeDestinationsResult.h:83
Aws::CloudWatchLogs::Model::DescribeDestinationsResult::SetDestinations
void SetDestinations(Aws::Vector< Destination > &&value)
Definition: DescribeDestinationsResult.h:50
Aws::CloudWatchLogs::Model::DescribeDestinationsResult::DescribeDestinationsResult
DescribeDestinationsResult()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudWatchLogs::Model::DescribeDestinationsResult::GetDestinations
const Aws::Vector< Destination > & GetDestinations() const
Definition: DescribeDestinationsResult.h:40
Aws::CloudWatchLogs::Model::DescribeDestinationsResult::WithNextToken
DescribeDestinationsResult & WithNextToken(const Aws::String &value)
Definition: DescribeDestinationsResult.h:86
Aws::CloudWatchLogs::Model::DescribeDestinationsResult::SetDestinations
void SetDestinations(const Aws::Vector< Destination > &value)
Definition: DescribeDestinationsResult.h:45