AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateEksAnywhereSubscriptionRequest.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/eks/EKSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace EKS
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_EKS_API UpdateEksAnywhereSubscriptionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateEksAnywhereSubscription"; }
32
33 AWS_EKS_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template<typename IdT = Aws::String>
43 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
44 template<typename IdT = Aws::String>
45 UpdateEksAnywhereSubscriptionRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
47
49
53 inline bool GetAutoRenew() const { return m_autoRenew; }
54 inline bool AutoRenewHasBeenSet() const { return m_autoRenewHasBeenSet; }
55 inline void SetAutoRenew(bool value) { m_autoRenewHasBeenSet = true; m_autoRenew = value; }
56 inline UpdateEksAnywhereSubscriptionRequest& WithAutoRenew(bool value) { SetAutoRenew(value); return *this;}
58
60
64 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
65 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
66 template<typename ClientRequestTokenT = Aws::String>
67 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
68 template<typename ClientRequestTokenT = Aws::String>
69 UpdateEksAnywhereSubscriptionRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
71 private:
72
73 Aws::String m_id;
74 bool m_idHasBeenSet = false;
75
76 bool m_autoRenew{false};
77 bool m_autoRenewHasBeenSet = false;
78
79 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
80 bool m_clientRequestTokenHasBeenSet = true;
81 };
82
83} // namespace Model
84} // namespace EKS
85} // 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