AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
UpdateEksAnywhereSubscriptionRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eks/EKSRequest.h>
10#include <aws/eks/EKS_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EKS {
16namespace Model {
17
21 public:
22 AWS_EKS_API UpdateEksAnywhereSubscriptionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateEksAnywhereSubscription"; }
29
30 AWS_EKS_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetId() const { return m_id; }
37 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
38 template <typename IdT = Aws::String>
39 void SetId(IdT&& value) {
40 m_idHasBeenSet = true;
41 m_id = std::forward<IdT>(value);
42 }
43 template <typename IdT = Aws::String>
45 SetId(std::forward<IdT>(value));
46 return *this;
47 }
49
51
55 inline bool GetAutoRenew() const { return m_autoRenew; }
56 inline bool AutoRenewHasBeenSet() const { return m_autoRenewHasBeenSet; }
57 inline void SetAutoRenew(bool value) {
58 m_autoRenewHasBeenSet = true;
59 m_autoRenew = value;
60 }
62 SetAutoRenew(value);
63 return *this;
64 }
66
68
72 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
73 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
74 template <typename ClientRequestTokenT = Aws::String>
75 void SetClientRequestToken(ClientRequestTokenT&& value) {
76 m_clientRequestTokenHasBeenSet = true;
77 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
78 }
79 template <typename ClientRequestTokenT = Aws::String>
81 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_id;
87
88 bool m_autoRenew{false};
89
90 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
91 bool m_idHasBeenSet = false;
92 bool m_autoRenewHasBeenSet = false;
93 bool m_clientRequestTokenHasBeenSet = true;
94};
95
96} // namespace Model
97} // namespace EKS
98} // namespace Aws
AWS_EKS_API Aws::String SerializePayload() const override
UpdateEksAnywhereSubscriptionRequest & WithAutoRenew(bool value)
UpdateEksAnywhereSubscriptionRequest & WithClientRequestToken(ClientRequestTokenT &&value)
UpdateEksAnywhereSubscriptionRequest & WithId(IdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String