AWS SDK for C++

AWS SDK for C++ Version 1.11.922

Loading...
Searching...
No Matches
CreateCollectorRequest.h
1
6#pragma once
7#include <aws/continuum/ContinuumRequest.h>
8#include <aws/continuum/Continuum_EXPORTS.h>
9#include <aws/continuum/model/CollectorType.h>
10#include <aws/continuum/model/KubernetesClusterRoleConfiguration.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Continuum {
18namespace Model {
19
27 public:
28 AWS_CONTINUUM_API CreateCollectorRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateCollector"; }
35
36 AWS_CONTINUUM_API Aws::String SerializePayload() const override;
37
39
42 inline CollectorType GetType() const { return m_type; }
43 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
44 inline void SetType(CollectorType value) {
45 m_typeHasBeenSet = true;
46 m_type = value;
47 }
49 SetType(value);
50 return *this;
51 }
53
55
59 inline const KubernetesClusterRoleConfiguration& GetKubernetesClusterRole() const { return m_kubernetesClusterRole; }
60 inline bool KubernetesClusterRoleHasBeenSet() const { return m_kubernetesClusterRoleHasBeenSet; }
61 template <typename KubernetesClusterRoleT = KubernetesClusterRoleConfiguration>
62 void SetKubernetesClusterRole(KubernetesClusterRoleT&& value) {
63 m_kubernetesClusterRoleHasBeenSet = true;
64 m_kubernetesClusterRole = std::forward<KubernetesClusterRoleT>(value);
65 }
66 template <typename KubernetesClusterRoleT = KubernetesClusterRoleConfiguration>
67 CreateCollectorRequest& WithKubernetesClusterRole(KubernetesClusterRoleT&& value) {
68 SetKubernetesClusterRole(std::forward<KubernetesClusterRoleT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetClientToken() const { return m_clientToken; }
79 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
80 template <typename ClientTokenT = Aws::String>
81 void SetClientToken(ClientTokenT&& value) {
82 m_clientTokenHasBeenSet = true;
83 m_clientToken = std::forward<ClientTokenT>(value);
84 }
85 template <typename ClientTokenT = Aws::String>
86 CreateCollectorRequest& WithClientToken(ClientTokenT&& value) {
87 SetClientToken(std::forward<ClientTokenT>(value));
88 return *this;
89 }
91 private:
93
94 KubernetesClusterRoleConfiguration m_kubernetesClusterRole;
95
97 bool m_typeHasBeenSet = false;
98 bool m_kubernetesClusterRoleHasBeenSet = false;
99 bool m_clientTokenHasBeenSet = true;
100};
101
102} // namespace Model
103} // namespace Continuum
104} // namespace Aws
CreateCollectorRequest & WithType(CollectorType value)
AWS_CONTINUUM_API CreateCollectorRequest()=default
CreateCollectorRequest & WithKubernetesClusterRole(KubernetesClusterRoleT &&value)
CreateCollectorRequest & WithClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CONTINUUM_API Aws::String SerializePayload() const override
void SetKubernetesClusterRole(KubernetesClusterRoleT &&value)
const KubernetesClusterRoleConfiguration & GetKubernetesClusterRole() const
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String