7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticmapreduce/EMR_EXPORTS.h>
11#include <aws/elasticmapreduce/model/CertificateAuthority.h>
12#include <aws/elasticmapreduce/model/Configuration.h>
13#include <aws/elasticmapreduce/model/SessionMonitoringConfiguration.h>
14#include <aws/elasticmapreduce/model/SessionState.h>
15#include <aws/elasticmapreduce/model/Tag.h>
48 template <
typename IdT = Aws::String>
50 m_idHasBeenSet =
true;
51 m_id = std::forward<IdT>(value);
53 template <
typename IdT = Aws::String>
55 SetId(std::forward<IdT>(value));
66 template <
typename ClusterIdT = Aws::String>
68 m_clusterIdHasBeenSet =
true;
69 m_clusterId = std::forward<ClusterIdT>(value);
71 template <
typename ClusterIdT = Aws::String>
84 template <
typename NameT = Aws::String>
86 m_nameHasBeenSet =
true;
87 m_name = std::forward<NameT>(value);
89 template <
typename NameT = Aws::String>
91 SetName(std::forward<NameT>(value));
102 template <
typename ArnT = Aws::String>
104 m_arnHasBeenSet =
true;
105 m_arn = std::forward<ArnT>(value);
107 template <
typename ArnT = Aws::String>
109 SetArn(std::forward<ArnT>(value));
124 m_stateHasBeenSet =
true;
139 template <
typename StateChangeReasonT = Aws::String>
141 m_stateChangeReasonHasBeenSet =
true;
142 m_stateChangeReason = std::forward<StateChangeReasonT>(value);
144 template <
typename StateChangeReasonT = Aws::String>
158 template <
typename ReleaseLabelT = Aws::String>
160 m_releaseLabelHasBeenSet =
true;
161 m_releaseLabel = std::forward<ReleaseLabelT>(value);
163 template <
typename ReleaseLabelT = Aws::String>
177 template <
typename ExecutionRoleArnT = Aws::String>
179 m_executionRoleArnHasBeenSet =
true;
180 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
182 template <
typename ExecutionRoleArnT = Aws::String>
195 template <
typename AccountIdT = Aws::String>
197 m_accountIdHasBeenSet =
true;
198 m_accountId = std::forward<AccountIdT>(value);
200 template <
typename AccountIdT = Aws::String>
213 template <
typename CreatedAtT = Aws::Utils::DateTime>
215 m_createdAtHasBeenSet =
true;
216 m_createdAt = std::forward<CreatedAtT>(value);
218 template <
typename CreatedAtT = Aws::Utils::DateTime>
231 template <
typename UpdatedAtT = Aws::Utils::DateTime>
233 m_updatedAtHasBeenSet =
true;
234 m_updatedAt = std::forward<UpdatedAtT>(value);
236 template <
typename UpdatedAtT = Aws::Utils::DateTime>
250 template <
typename StartedAtT = Aws::Utils::DateTime>
252 m_startedAtHasBeenSet =
true;
253 m_startedAt = std::forward<StartedAtT>(value);
255 template <
typename StartedAtT = Aws::Utils::DateTime>
268 template <
typename EndedAtT = Aws::Utils::DateTime>
270 m_endedAtHasBeenSet =
true;
271 m_endedAt = std::forward<EndedAtT>(value);
273 template <
typename EndedAtT = Aws::Utils::DateTime>
287 template <
typename IdleSinceT = Aws::Utils::DateTime>
289 m_idleSinceHasBeenSet =
true;
290 m_idleSince = std::forward<IdleSinceT>(value);
292 template <
typename IdleSinceT = Aws::Utils::DateTime>
306 template <
typename EngineConfigurationsT = Aws::Vector<Configuration>>
308 m_engineConfigurationsHasBeenSet =
true;
309 m_engineConfigurations = std::forward<EngineConfigurationsT>(value);
311 template <
typename EngineConfigurationsT = Aws::Vector<Configuration>>
316 template <
typename EngineConfigurationsT = Configuration>
318 m_engineConfigurationsHasBeenSet =
true;
319 m_engineConfigurations.emplace_back(std::forward<EngineConfigurationsT>(value));
330 template <
typename MonitoringConfigurationT = SessionMonitoringConfiguration>
332 m_monitoringConfigurationHasBeenSet =
true;
333 m_monitoringConfiguration = std::forward<MonitoringConfigurationT>(value);
335 template <
typename MonitoringConfigurationT = SessionMonitoringConfiguration>
350 m_sessionIdleTimeoutInMinutesHasBeenSet =
true;
351 m_sessionIdleTimeoutInMinutes = value;
366 template <
typename CertificateAuthorityT = CertificateAuthority>
368 m_certificateAuthorityHasBeenSet =
true;
369 m_certificateAuthority = std::forward<CertificateAuthorityT>(value);
371 template <
typename CertificateAuthorityT = CertificateAuthority>
386 template <
typename ServerUrlT = Aws::String>
388 m_serverUrlHasBeenSet =
true;
389 m_serverUrl = std::forward<ServerUrlT>(value);
391 template <
typename ServerUrlT = Aws::String>
404 template <
typename TagsT = Aws::Vector<Tag>>
406 m_tagsHasBeenSet =
true;
407 m_tags = std::forward<TagsT>(value);
409 template <
typename TagsT = Aws::Vector<Tag>>
411 SetTags(std::forward<TagsT>(value));
414 template <
typename TagsT = Tag>
416 m_tagsHasBeenSet =
true;
417 m_tags.emplace_back(std::forward<TagsT>(value));
452 SessionMonitoringConfiguration m_monitoringConfiguration;
454 long long m_sessionIdleTimeoutInMinutes{0};
456 CertificateAuthority m_certificateAuthority;
461 bool m_idHasBeenSet =
false;
462 bool m_clusterIdHasBeenSet =
false;
463 bool m_nameHasBeenSet =
false;
464 bool m_arnHasBeenSet =
false;
465 bool m_stateHasBeenSet =
false;
466 bool m_stateChangeReasonHasBeenSet =
false;
467 bool m_releaseLabelHasBeenSet =
false;
468 bool m_executionRoleArnHasBeenSet =
false;
469 bool m_accountIdHasBeenSet =
false;
470 bool m_createdAtHasBeenSet =
false;
471 bool m_updatedAtHasBeenSet =
false;
472 bool m_startedAtHasBeenSet =
false;
473 bool m_endedAtHasBeenSet =
false;
474 bool m_idleSinceHasBeenSet =
false;
475 bool m_engineConfigurationsHasBeenSet =
false;
476 bool m_monitoringConfigurationHasBeenSet =
false;
477 bool m_sessionIdleTimeoutInMinutesHasBeenSet =
false;
478 bool m_certificateAuthorityHasBeenSet =
false;
479 bool m_serverUrlHasBeenSet =
false;
480 bool m_tagsHasBeenSet =
false;
Session & WithState(SessionState value)
const Aws::String & GetArn() const
Session & WithUpdatedAt(UpdatedAtT &&value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetId() const
Session & WithName(NameT &&value)
const SessionMonitoringConfiguration & GetMonitoringConfiguration() const
bool StateHasBeenSet() const
const Aws::String & GetName() const
void SetStateChangeReason(StateChangeReasonT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
Session & WithCertificateAuthority(CertificateAuthorityT &&value)
long long GetSessionIdleTimeoutInMinutes() const
const Aws::Utils::DateTime & GetIdleSince() const
AWS_EMR_API Session(Aws::Utils::Json::JsonView jsonValue)
const CertificateAuthority & GetCertificateAuthority() const
const Aws::String & GetStateChangeReason() const
Session & WithEngineConfigurations(EngineConfigurationsT &&value)
Session & WithExecutionRoleArn(ExecutionRoleArnT &&value)
bool IdHasBeenSet() const
void SetState(SessionState value)
void SetSessionIdleTimeoutInMinutes(long long value)
void SetName(NameT &&value)
Session & WithMonitoringConfiguration(MonitoringConfigurationT &&value)
Session & WithAccountId(AccountIdT &&value)
Session & WithId(IdT &&value)
Session & WithClusterId(ClusterIdT &&value)
Session & WithTags(TagsT &&value)
const Aws::String & GetClusterId() const
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::Vector< Configuration > & GetEngineConfigurations() const
Session & WithStartedAt(StartedAtT &&value)
void SetReleaseLabel(ReleaseLabelT &&value)
const Aws::String & GetAccountId() const
void SetCreatedAt(CreatedAtT &&value)
bool ExecutionRoleArnHasBeenSet() const
Session & AddTags(TagsT &&value)
bool EndedAtHasBeenSet() const
Session & WithStateChangeReason(StateChangeReasonT &&value)
Session & WithEndedAt(EndedAtT &&value)
bool ServerUrlHasBeenSet() const
void SetTags(TagsT &&value)
bool SessionIdleTimeoutInMinutesHasBeenSet() const
bool CertificateAuthorityHasBeenSet() const
void SetIdleSince(IdleSinceT &&value)
const Aws::String & GetReleaseLabel() const
Session & WithIdleSince(IdleSinceT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
SessionState GetState() const
Session & WithServerUrl(ServerUrlT &&value)
void SetArn(ArnT &&value)
bool NameHasBeenSet() const
const Aws::String & GetServerUrl() const
void SetEndedAt(EndedAtT &&value)
const Aws::Vector< Tag > & GetTags() const
Session & AddEngineConfigurations(EngineConfigurationsT &&value)
bool TagsHasBeenSet() const
bool ClusterIdHasBeenSet() const
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
bool ArnHasBeenSet() const
void SetUpdatedAt(UpdatedAtT &&value)
bool StartedAtHasBeenSet() const
bool IdleSinceHasBeenSet() const
const Aws::Utils::DateTime & GetEndedAt() const
bool AccountIdHasBeenSet() const
Session & WithArn(ArnT &&value)
Session & WithSessionIdleTimeoutInMinutes(long long value)
bool StateChangeReasonHasBeenSet() const
bool EngineConfigurationsHasBeenSet() const
void SetAccountId(AccountIdT &&value)
bool MonitoringConfigurationHasBeenSet() const
void SetClusterId(ClusterIdT &&value)
void SetEngineConfigurations(EngineConfigurationsT &&value)
bool CreatedAtHasBeenSet() const
void SetServerUrl(ServerUrlT &&value)
void SetMonitoringConfiguration(MonitoringConfigurationT &&value)
void SetCertificateAuthority(CertificateAuthorityT &&value)
AWS_EMR_API Session & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_EMR_API Session()=default
Session & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetExecutionRoleArn() const
bool ReleaseLabelHasBeenSet() const
bool UpdatedAtHasBeenSet() const
void SetStartedAt(StartedAtT &&value)
Session & WithReleaseLabel(ReleaseLabelT &&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