AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetManagedEndpointSessionCredentialsRequest.h
1
6#pragma once
7#include <aws/emr-containers/EMRContainers_EXPORTS.h>
8#include <aws/emr-containers/EMRContainersRequest.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 EMRContainers
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_EMRCONTAINERS_API GetManagedEndpointSessionCredentialsRequest() = 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 "GetManagedEndpointSessionCredentials"; }
32
33 AWS_EMRCONTAINERS_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetEndpointIdentifier() const { return m_endpointIdentifier; }
41 inline bool EndpointIdentifierHasBeenSet() const { return m_endpointIdentifierHasBeenSet; }
42 template<typename EndpointIdentifierT = Aws::String>
43 void SetEndpointIdentifier(EndpointIdentifierT&& value) { m_endpointIdentifierHasBeenSet = true; m_endpointIdentifier = std::forward<EndpointIdentifierT>(value); }
44 template<typename EndpointIdentifierT = Aws::String>
45 GetManagedEndpointSessionCredentialsRequest& WithEndpointIdentifier(EndpointIdentifierT&& value) { SetEndpointIdentifier(std::forward<EndpointIdentifierT>(value)); return *this;}
47
49
52 inline const Aws::String& GetVirtualClusterIdentifier() const { return m_virtualClusterIdentifier; }
53 inline bool VirtualClusterIdentifierHasBeenSet() const { return m_virtualClusterIdentifierHasBeenSet; }
54 template<typename VirtualClusterIdentifierT = Aws::String>
55 void SetVirtualClusterIdentifier(VirtualClusterIdentifierT&& value) { m_virtualClusterIdentifierHasBeenSet = true; m_virtualClusterIdentifier = std::forward<VirtualClusterIdentifierT>(value); }
56 template<typename VirtualClusterIdentifierT = Aws::String>
57 GetManagedEndpointSessionCredentialsRequest& WithVirtualClusterIdentifier(VirtualClusterIdentifierT&& value) { SetVirtualClusterIdentifier(std::forward<VirtualClusterIdentifierT>(value)); return *this;}
59
61
64 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
65 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
66 template<typename ExecutionRoleArnT = Aws::String>
67 void SetExecutionRoleArn(ExecutionRoleArnT&& value) { m_executionRoleArnHasBeenSet = true; m_executionRoleArn = std::forward<ExecutionRoleArnT>(value); }
68 template<typename ExecutionRoleArnT = Aws::String>
69 GetManagedEndpointSessionCredentialsRequest& WithExecutionRoleArn(ExecutionRoleArnT&& value) { SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value)); return *this;}
71
73
77 inline const Aws::String& GetCredentialType() const { return m_credentialType; }
78 inline bool CredentialTypeHasBeenSet() const { return m_credentialTypeHasBeenSet; }
79 template<typename CredentialTypeT = Aws::String>
80 void SetCredentialType(CredentialTypeT&& value) { m_credentialTypeHasBeenSet = true; m_credentialType = std::forward<CredentialTypeT>(value); }
81 template<typename CredentialTypeT = Aws::String>
82 GetManagedEndpointSessionCredentialsRequest& WithCredentialType(CredentialTypeT&& value) { SetCredentialType(std::forward<CredentialTypeT>(value)); return *this;}
84
86
90 inline int GetDurationInSeconds() const { return m_durationInSeconds; }
91 inline bool DurationInSecondsHasBeenSet() const { return m_durationInSecondsHasBeenSet; }
92 inline void SetDurationInSeconds(int value) { m_durationInSecondsHasBeenSet = true; m_durationInSeconds = value; }
95
97
101 inline const Aws::String& GetLogContext() const { return m_logContext; }
102 inline bool LogContextHasBeenSet() const { return m_logContextHasBeenSet; }
103 template<typename LogContextT = Aws::String>
104 void SetLogContext(LogContextT&& value) { m_logContextHasBeenSet = true; m_logContext = std::forward<LogContextT>(value); }
105 template<typename LogContextT = Aws::String>
106 GetManagedEndpointSessionCredentialsRequest& WithLogContext(LogContextT&& value) { SetLogContext(std::forward<LogContextT>(value)); return *this;}
108
110
113 inline const Aws::String& GetClientToken() const { return m_clientToken; }
114 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
115 template<typename ClientTokenT = Aws::String>
116 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
117 template<typename ClientTokenT = Aws::String>
118 GetManagedEndpointSessionCredentialsRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
120 private:
121
122 Aws::String m_endpointIdentifier;
123 bool m_endpointIdentifierHasBeenSet = false;
124
125 Aws::String m_virtualClusterIdentifier;
126 bool m_virtualClusterIdentifierHasBeenSet = false;
127
128 Aws::String m_executionRoleArn;
129 bool m_executionRoleArnHasBeenSet = false;
130
131 Aws::String m_credentialType;
132 bool m_credentialTypeHasBeenSet = false;
133
134 int m_durationInSeconds{0};
135 bool m_durationInSecondsHasBeenSet = false;
136
137 Aws::String m_logContext;
138 bool m_logContextHasBeenSet = false;
139
141 bool m_clientTokenHasBeenSet = true;
142 };
143
144} // namespace Model
145} // namespace EMRContainers
146} // namespace Aws
GetManagedEndpointSessionCredentialsRequest & WithEndpointIdentifier(EndpointIdentifierT &&value)
GetManagedEndpointSessionCredentialsRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
AWS_EMRCONTAINERS_API Aws::String SerializePayload() const override
GetManagedEndpointSessionCredentialsRequest & WithVirtualClusterIdentifier(VirtualClusterIdentifierT &&value)
GetManagedEndpointSessionCredentialsRequest & WithCredentialType(CredentialTypeT &&value)
GetManagedEndpointSessionCredentialsRequest & WithLogContext(LogContextT &&value)
GetManagedEndpointSessionCredentialsRequest & WithClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String