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/Configuration.h>
12#include <aws/elasticmapreduce/model/SessionMonitoringConfiguration.h>
13#include <aws/elasticmapreduce/model/SessionState.h>
14#include <aws/elasticmapreduce/model/Tag.h>
47 template <
typename IdT = Aws::String>
49 m_idHasBeenSet =
true;
50 m_id = std::forward<IdT>(value);
52 template <
typename IdT = Aws::String>
54 SetId(std::forward<IdT>(value));
65 template <
typename ClusterIdT = Aws::String>
67 m_clusterIdHasBeenSet =
true;
68 m_clusterId = std::forward<ClusterIdT>(value);
70 template <
typename ClusterIdT = Aws::String>
83 template <
typename NameT = Aws::String>
85 m_nameHasBeenSet =
true;
86 m_name = std::forward<NameT>(value);
88 template <
typename NameT = Aws::String>
90 SetName(std::forward<NameT>(value));
101 template <
typename ArnT = Aws::String>
103 m_arnHasBeenSet =
true;
104 m_arn = std::forward<ArnT>(value);
106 template <
typename ArnT = Aws::String>
108 SetArn(std::forward<ArnT>(value));
123 m_stateHasBeenSet =
true;
138 template <
typename StateChangeReasonT = Aws::String>
140 m_stateChangeReasonHasBeenSet =
true;
141 m_stateChangeReason = std::forward<StateChangeReasonT>(value);
143 template <
typename StateChangeReasonT = Aws::String>
157 template <
typename ReleaseLabelT = Aws::String>
159 m_releaseLabelHasBeenSet =
true;
160 m_releaseLabel = std::forward<ReleaseLabelT>(value);
162 template <
typename ReleaseLabelT = Aws::String>
176 template <
typename ExecutionRoleArnT = Aws::String>
178 m_executionRoleArnHasBeenSet =
true;
179 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
181 template <
typename ExecutionRoleArnT = Aws::String>
194 template <
typename AccountIdT = Aws::String>
196 m_accountIdHasBeenSet =
true;
197 m_accountId = std::forward<AccountIdT>(value);
199 template <
typename AccountIdT = Aws::String>
212 template <
typename CreatedAtT = Aws::Utils::DateTime>
214 m_createdAtHasBeenSet =
true;
215 m_createdAt = std::forward<CreatedAtT>(value);
217 template <
typename CreatedAtT = Aws::Utils::DateTime>
230 template <
typename UpdatedAtT = Aws::Utils::DateTime>
232 m_updatedAtHasBeenSet =
true;
233 m_updatedAt = std::forward<UpdatedAtT>(value);
235 template <
typename UpdatedAtT = Aws::Utils::DateTime>
249 template <
typename StartedAtT = Aws::Utils::DateTime>
251 m_startedAtHasBeenSet =
true;
252 m_startedAt = std::forward<StartedAtT>(value);
254 template <
typename StartedAtT = Aws::Utils::DateTime>
267 template <
typename EndedAtT = Aws::Utils::DateTime>
269 m_endedAtHasBeenSet =
true;
270 m_endedAt = std::forward<EndedAtT>(value);
272 template <
typename EndedAtT = Aws::Utils::DateTime>
286 template <
typename IdleSinceT = Aws::Utils::DateTime>
288 m_idleSinceHasBeenSet =
true;
289 m_idleSince = std::forward<IdleSinceT>(value);
291 template <
typename IdleSinceT = Aws::Utils::DateTime>
305 template <
typename EngineConfigurationsT = Aws::Vector<Configuration>>
307 m_engineConfigurationsHasBeenSet =
true;
308 m_engineConfigurations = std::forward<EngineConfigurationsT>(value);
310 template <
typename EngineConfigurationsT = Aws::Vector<Configuration>>
315 template <
typename EngineConfigurationsT = Configuration>
317 m_engineConfigurationsHasBeenSet =
true;
318 m_engineConfigurations.emplace_back(std::forward<EngineConfigurationsT>(value));
329 template <
typename MonitoringConfigurationT = SessionMonitoringConfiguration>
331 m_monitoringConfigurationHasBeenSet =
true;
332 m_monitoringConfiguration = std::forward<MonitoringConfigurationT>(value);
334 template <
typename MonitoringConfigurationT = SessionMonitoringConfiguration>
349 m_sessionIdleTimeoutInMinutesHasBeenSet =
true;
350 m_sessionIdleTimeoutInMinutes = value;
366 template <
typename ServerUrlT = Aws::String>
368 m_serverUrlHasBeenSet =
true;
369 m_serverUrl = std::forward<ServerUrlT>(value);
371 template <
typename ServerUrlT = Aws::String>
384 template <
typename TagsT = Aws::Vector<Tag>>
386 m_tagsHasBeenSet =
true;
387 m_tags = std::forward<TagsT>(value);
389 template <
typename TagsT = Aws::Vector<Tag>>
391 SetTags(std::forward<TagsT>(value));
394 template <
typename TagsT = Tag>
396 m_tagsHasBeenSet =
true;
397 m_tags.emplace_back(std::forward<TagsT>(value));
432 SessionMonitoringConfiguration m_monitoringConfiguration;
434 long long m_sessionIdleTimeoutInMinutes{0};
439 bool m_idHasBeenSet =
false;
440 bool m_clusterIdHasBeenSet =
false;
441 bool m_nameHasBeenSet =
false;
442 bool m_arnHasBeenSet =
false;
443 bool m_stateHasBeenSet =
false;
444 bool m_stateChangeReasonHasBeenSet =
false;
445 bool m_releaseLabelHasBeenSet =
false;
446 bool m_executionRoleArnHasBeenSet =
false;
447 bool m_accountIdHasBeenSet =
false;
448 bool m_createdAtHasBeenSet =
false;
449 bool m_updatedAtHasBeenSet =
false;
450 bool m_startedAtHasBeenSet =
false;
451 bool m_endedAtHasBeenSet =
false;
452 bool m_idleSinceHasBeenSet =
false;
453 bool m_engineConfigurationsHasBeenSet =
false;
454 bool m_monitoringConfigurationHasBeenSet =
false;
455 bool m_sessionIdleTimeoutInMinutesHasBeenSet =
false;
456 bool m_serverUrlHasBeenSet =
false;
457 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
long long GetSessionIdleTimeoutInMinutes() const
const Aws::Utils::DateTime & GetIdleSince() const
AWS_EMR_API Session(Aws::Utils::Json::JsonView jsonValue)
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
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)
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