AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeEventTopicsResult.h
1
6#pragma once
7#include <aws/ds/DirectoryService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ds/model/EventTopic.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace DirectoryService
26{
27namespace Model
28{
35 {
36 public:
37 AWS_DIRECTORYSERVICE_API DescribeEventTopicsResult() = default;
40
41
43
47 inline const Aws::Vector<EventTopic>& GetEventTopics() const { return m_eventTopics; }
48 template<typename EventTopicsT = Aws::Vector<EventTopic>>
49 void SetEventTopics(EventTopicsT&& value) { m_eventTopicsHasBeenSet = true; m_eventTopics = std::forward<EventTopicsT>(value); }
50 template<typename EventTopicsT = Aws::Vector<EventTopic>>
51 DescribeEventTopicsResult& WithEventTopics(EventTopicsT&& value) { SetEventTopics(std::forward<EventTopicsT>(value)); return *this;}
52 template<typename EventTopicsT = EventTopic>
53 DescribeEventTopicsResult& AddEventTopics(EventTopicsT&& value) { m_eventTopicsHasBeenSet = true; m_eventTopics.emplace_back(std::forward<EventTopicsT>(value)); return *this; }
55
57
58 inline const Aws::String& GetRequestId() const { return m_requestId; }
59 template<typename RequestIdT = Aws::String>
60 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
61 template<typename RequestIdT = Aws::String>
62 DescribeEventTopicsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
64 private:
65
66 Aws::Vector<EventTopic> m_eventTopics;
67 bool m_eventTopicsHasBeenSet = false;
68
69 Aws::String m_requestId;
70 bool m_requestIdHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace DirectoryService
75} // namespace Aws
DescribeEventTopicsResult & AddEventTopics(EventTopicsT &&value)
AWS_DIRECTORYSERVICE_API DescribeEventTopicsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DIRECTORYSERVICE_API DescribeEventTopicsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeEventTopicsResult & WithEventTopics(EventTopicsT &&value)
AWS_DIRECTORYSERVICE_API DescribeEventTopicsResult()=default
DescribeEventTopicsResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue