AWS SDK for C++  1.9.15
AWS SDK for C++
ListLogSubscriptionsResult.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 DirectoryService
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
41  inline const Aws::Vector<LogSubscription>& GetLogSubscriptions() const{ return m_logSubscriptions; }
42 
47  inline void SetLogSubscriptions(const Aws::Vector<LogSubscription>& value) { m_logSubscriptions = value; }
48 
53  inline void SetLogSubscriptions(Aws::Vector<LogSubscription>&& value) { m_logSubscriptions = std::move(value); }
54 
59  inline ListLogSubscriptionsResult& WithLogSubscriptions(const Aws::Vector<LogSubscription>& value) { SetLogSubscriptions(value); return *this;}
60 
65  inline ListLogSubscriptionsResult& WithLogSubscriptions(Aws::Vector<LogSubscription>&& value) { SetLogSubscriptions(std::move(value)); return *this;}
66 
71  inline ListLogSubscriptionsResult& AddLogSubscriptions(const LogSubscription& value) { m_logSubscriptions.push_back(value); return *this; }
72 
77  inline ListLogSubscriptionsResult& AddLogSubscriptions(LogSubscription&& value) { m_logSubscriptions.push_back(std::move(value)); return *this; }
78 
79 
83  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
84 
88  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
89 
93  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
94 
98  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
99 
103  inline ListLogSubscriptionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
104 
108  inline ListLogSubscriptionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
109 
113  inline ListLogSubscriptionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
114 
115  private:
116 
117  Aws::Vector<LogSubscription> m_logSubscriptions;
118 
119  Aws::String m_nextToken;
120  };
121 
122 } // namespace Model
123 } // namespace DirectoryService
124 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::DirectoryService::Model::ListLogSubscriptionsResult::WithNextToken
ListLogSubscriptionsResult & WithNextToken(const Aws::String &value)
Definition: ListLogSubscriptionsResult.h:103
AWS_DIRECTORYSERVICE_API
#define AWS_DIRECTORYSERVICE_API
Definition: DirectoryService_EXPORTS.h:28
Aws::DirectoryService::Model::ListLogSubscriptionsResult::AddLogSubscriptions
ListLogSubscriptionsResult & AddLogSubscriptions(LogSubscription &&value)
Definition: ListLogSubscriptionsResult.h:77
Aws::DirectoryService::Model::ListLogSubscriptionsResult::AddLogSubscriptions
ListLogSubscriptionsResult & AddLogSubscriptions(const LogSubscription &value)
Definition: ListLogSubscriptionsResult.h:71
DirectoryService_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DirectoryService::Model::ListLogSubscriptionsResult::SetLogSubscriptions
void SetLogSubscriptions(const Aws::Vector< LogSubscription > &value)
Definition: ListLogSubscriptionsResult.h:47
Aws::DirectoryService::Model::LogSubscription
Definition: LogSubscription.h:34
Aws::DirectoryService::Model::ListLogSubscriptionsResult::SetLogSubscriptions
void SetLogSubscriptions(Aws::Vector< LogSubscription > &&value)
Definition: ListLogSubscriptionsResult.h:53
Aws::DirectoryService::Model::ListLogSubscriptionsResult::GetLogSubscriptions
const Aws::Vector< LogSubscription > & GetLogSubscriptions() const
Definition: ListLogSubscriptionsResult.h:41
AWSVector.h
Aws::DirectoryService::Model::ListLogSubscriptionsResult::ListLogSubscriptionsResult
ListLogSubscriptionsResult()
Aws::DirectoryService::Model::ListLogSubscriptionsResult::ListLogSubscriptionsResult
ListLogSubscriptionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::DirectoryService::Model::ListLogSubscriptionsResult::WithNextToken
ListLogSubscriptionsResult & WithNextToken(Aws::String &&value)
Definition: ListLogSubscriptionsResult.h:108
AWSString.h
Aws::DirectoryService::Model::ListLogSubscriptionsResult::WithLogSubscriptions
ListLogSubscriptionsResult & WithLogSubscriptions(const Aws::Vector< LogSubscription > &value)
Definition: ListLogSubscriptionsResult.h:59
Aws::DirectoryService::Model::ListLogSubscriptionsResult::WithLogSubscriptions
ListLogSubscriptionsResult & WithLogSubscriptions(Aws::Vector< LogSubscription > &&value)
Definition: ListLogSubscriptionsResult.h:65
LogSubscription.h
Aws::DirectoryService::Model::ListLogSubscriptionsResult::WithNextToken
ListLogSubscriptionsResult & WithNextToken(const char *value)
Definition: ListLogSubscriptionsResult.h:113
Aws::DirectoryService::Model::ListLogSubscriptionsResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListLogSubscriptionsResult.h:88
Aws::DirectoryService::Model::ListLogSubscriptionsResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListLogSubscriptionsResult.h:93
Aws
Definition: AccessManagementClient.h:15
Aws::DirectoryService::Model::ListLogSubscriptionsResult::SetNextToken
void SetNextToken(const char *value)
Definition: ListLogSubscriptionsResult.h:98
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DirectoryService::Model::ListLogSubscriptionsResult::operator=
ListLogSubscriptionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::DirectoryService::Model::ListLogSubscriptionsResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListLogSubscriptionsResult.h:83
Aws::DirectoryService::Model::ListLogSubscriptionsResult
Definition: ListLogSubscriptionsResult.h:30