7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/emr-serverless/EMRServerless_EXPORTS.h>
11#include <aws/emr-serverless/model/NetworkConfiguration.h>
12#include <aws/emr-serverless/model/ResourceUtilization.h>
13#include <aws/emr-serverless/model/SessionConfigurationOverrides.h>
14#include <aws/emr-serverless/model/SessionState.h>
15#include <aws/emr-serverless/model/TotalResourceUtilization.h>
26namespace EMRServerless {
37 AWS_EMRSERVERLESS_API
Session() =
default;
48 template <
typename ApplicationIdT = Aws::String>
50 m_applicationIdHasBeenSet =
true;
51 m_applicationId = std::forward<ApplicationIdT>(value);
53 template <
typename ApplicationIdT = Aws::String>
66 template <
typename SessionIdT = Aws::String>
68 m_sessionIdHasBeenSet =
true;
69 m_sessionId = std::forward<SessionIdT>(value);
71 template <
typename SessionIdT = Aws::String>
84 template <
typename ArnT = Aws::String>
86 m_arnHasBeenSet =
true;
87 m_arn = std::forward<ArnT>(value);
89 template <
typename ArnT = Aws::String>
91 SetArn(std::forward<ArnT>(value));
102 template <
typename NameT = Aws::String>
104 m_nameHasBeenSet =
true;
105 m_name = std::forward<NameT>(value);
107 template <
typename NameT = Aws::String>
109 SetName(std::forward<NameT>(value));
121 m_stateHasBeenSet =
true;
136 template <
typename StateDetailsT = Aws::String>
138 m_stateDetailsHasBeenSet =
true;
139 m_stateDetails = std::forward<StateDetailsT>(value);
141 template <
typename StateDetailsT = Aws::String>
154 template <
typename ReleaseLabelT = Aws::String>
156 m_releaseLabelHasBeenSet =
true;
157 m_releaseLabel = std::forward<ReleaseLabelT>(value);
159 template <
typename ReleaseLabelT = Aws::String>
172 template <
typename ExecutionRoleArnT = Aws::String>
174 m_executionRoleArnHasBeenSet =
true;
175 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
177 template <
typename ExecutionRoleArnT = Aws::String>
190 template <
typename CreatedByT = Aws::String>
192 m_createdByHasBeenSet =
true;
193 m_createdBy = std::forward<CreatedByT>(value);
195 template <
typename CreatedByT = Aws::String>
208 template <
typename CreatedAtT = Aws::Utils::DateTime>
210 m_createdAtHasBeenSet =
true;
211 m_createdAt = std::forward<CreatedAtT>(value);
213 template <
typename CreatedAtT = Aws::Utils::DateTime>
226 template <
typename UpdatedAtT = Aws::Utils::DateTime>
228 m_updatedAtHasBeenSet =
true;
229 m_updatedAt = std::forward<UpdatedAtT>(value);
231 template <
typename UpdatedAtT = Aws::Utils::DateTime>
244 template <
typename StartedAtT = Aws::Utils::DateTime>
246 m_startedAtHasBeenSet =
true;
247 m_startedAt = std::forward<StartedAtT>(value);
249 template <
typename StartedAtT = Aws::Utils::DateTime>
262 template <
typename EndedAtT = Aws::Utils::DateTime>
264 m_endedAtHasBeenSet =
true;
265 m_endedAt = std::forward<EndedAtT>(value);
267 template <
typename EndedAtT = Aws::Utils::DateTime>
280 template <
typename IdleSinceT = Aws::Utils::DateTime>
282 m_idleSinceHasBeenSet =
true;
283 m_idleSince = std::forward<IdleSinceT>(value);
285 template <
typename IdleSinceT = Aws::Utils::DateTime>
299 template <
typename ConfigurationOverr
idesT = SessionConfigurationOverr
ides>
301 m_configurationOverridesHasBeenSet =
true;
302 m_configurationOverrides = std::forward<ConfigurationOverridesT>(value);
304 template <
typename ConfigurationOverr
idesT = SessionConfigurationOverr
ides>
317 template <
typename NetworkConfigurationT = NetworkConfiguration>
319 m_networkConfigurationHasBeenSet =
true;
320 m_networkConfiguration = std::forward<NetworkConfigurationT>(value);
322 template <
typename NetworkConfigurationT = NetworkConfiguration>
337 m_idleTimeoutMinutesHasBeenSet =
true;
338 m_idleTimeoutMinutes = value;
352 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
354 m_tagsHasBeenSet =
true;
355 m_tags = std::forward<TagsT>(value);
357 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
359 SetTags(std::forward<TagsT>(value));
362 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
364 m_tagsHasBeenSet =
true;
365 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
378 template <
typename TotalResourceUtilizationT = TotalResourceUtilization>
380 m_totalResourceUtilizationHasBeenSet =
true;
381 m_totalResourceUtilization = std::forward<TotalResourceUtilizationT>(value);
383 template <
typename TotalResourceUtilizationT = TotalResourceUtilization>
399 template <
typename BilledResourceUtilizationT = ResourceUtilization>
401 m_billedResourceUtilizationHasBeenSet =
true;
402 m_billedResourceUtilization = std::forward<BilledResourceUtilizationT>(value);
404 template <
typename BilledResourceUtilizationT = ResourceUtilization>
418 m_totalExecutionDurationSecondsHasBeenSet =
true;
419 m_totalExecutionDurationSeconds = value;
455 SessionConfigurationOverrides m_configurationOverrides;
457 NetworkConfiguration m_networkConfiguration;
459 long long m_idleTimeoutMinutes{0};
463 TotalResourceUtilization m_totalResourceUtilization;
465 ResourceUtilization m_billedResourceUtilization;
467 long long m_totalExecutionDurationSeconds{0};
468 bool m_applicationIdHasBeenSet =
false;
469 bool m_sessionIdHasBeenSet =
false;
470 bool m_arnHasBeenSet =
false;
471 bool m_nameHasBeenSet =
false;
472 bool m_stateHasBeenSet =
false;
473 bool m_stateDetailsHasBeenSet =
false;
474 bool m_releaseLabelHasBeenSet =
false;
475 bool m_executionRoleArnHasBeenSet =
false;
476 bool m_createdByHasBeenSet =
false;
477 bool m_createdAtHasBeenSet =
false;
478 bool m_updatedAtHasBeenSet =
false;
479 bool m_startedAtHasBeenSet =
false;
480 bool m_endedAtHasBeenSet =
false;
481 bool m_idleSinceHasBeenSet =
false;
482 bool m_configurationOverridesHasBeenSet =
false;
483 bool m_networkConfigurationHasBeenSet =
false;
484 bool m_idleTimeoutMinutesHasBeenSet =
false;
485 bool m_tagsHasBeenSet =
false;
486 bool m_totalResourceUtilizationHasBeenSet =
false;
487 bool m_billedResourceUtilizationHasBeenSet =
false;
488 bool m_totalExecutionDurationSecondsHasBeenSet =
false;
const Aws::Utils::DateTime & GetIdleSince() const
void SetStateDetails(StateDetailsT &&value)
const Aws::String & GetStateDetails() const
void SetBilledResourceUtilization(BilledResourceUtilizationT &&value)
Session & WithTags(TagsT &&value)
const Aws::Utils::DateTime & GetEndedAt() const
const Aws::String & GetSessionId() const
Session & WithExecutionRoleArn(ExecutionRoleArnT &&value)
bool TagsHasBeenSet() const
bool TotalResourceUtilizationHasBeenSet() const
bool ApplicationIdHasBeenSet() const
const Aws::String & GetCreatedBy() const
void SetCreatedBy(CreatedByT &&value)
bool IdleSinceHasBeenSet() const
Session & WithApplicationId(ApplicationIdT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetTags(TagsT &&value)
bool StateDetailsHasBeenSet() const
void SetReleaseLabel(ReleaseLabelT &&value)
void SetEndedAt(EndedAtT &&value)
Session & WithStartedAt(StartedAtT &&value)
void SetIdleTimeoutMinutes(long long value)
const Aws::Utils::DateTime & GetUpdatedAt() const
SessionState GetState() const
const NetworkConfiguration & GetNetworkConfiguration() const
Session & WithNetworkConfiguration(NetworkConfigurationT &&value)
void SetConfigurationOverrides(ConfigurationOverridesT &&value)
bool CreatedAtHasBeenSet() const
bool UpdatedAtHasBeenSet() const
const Aws::String & GetArn() const
void SetStartedAt(StartedAtT &&value)
Session & WithTotalResourceUtilization(TotalResourceUtilizationT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetTotalResourceUtilization(TotalResourceUtilizationT &&value)
Session & AddTags(TagsKeyT &&key, TagsValueT &&value)
Session & WithConfigurationOverrides(ConfigurationOverridesT &&value)
Session & WithReleaseLabel(ReleaseLabelT &&value)
void SetName(NameT &&value)
Session & WithBilledResourceUtilization(BilledResourceUtilizationT &&value)
AWS_EMRSERVERLESS_API Session & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIdleSince(IdleSinceT &&value)
Session & WithSessionId(SessionIdT &&value)
Session & WithIdleSince(IdleSinceT &&value)
Session & WithTotalExecutionDurationSeconds(long long value)
void SetApplicationId(ApplicationIdT &&value)
bool IdleTimeoutMinutesHasBeenSet() const
Session & WithCreatedBy(CreatedByT &&value)
void SetTotalExecutionDurationSeconds(long long value)
bool NetworkConfigurationHasBeenSet() const
bool ArnHasBeenSet() const
void SetArn(ArnT &&value)
const Aws::String & GetExecutionRoleArn() const
long long GetIdleTimeoutMinutes() const
AWS_EMRSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
bool SessionIdHasBeenSet() const
void SetState(SessionState value)
long long GetTotalExecutionDurationSeconds() const
const Aws::String & GetApplicationId() const
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
Session & WithState(SessionState value)
Session & WithIdleTimeoutMinutes(long long value)
const Aws::String & GetName() const
bool StateHasBeenSet() const
const TotalResourceUtilization & GetTotalResourceUtilization() const
bool ReleaseLabelHasBeenSet() const
void SetSessionId(SessionIdT &&value)
bool TotalExecutionDurationSecondsHasBeenSet() const
bool CreatedByHasBeenSet() const
bool ConfigurationOverridesHasBeenSet() const
const ResourceUtilization & GetBilledResourceUtilization() const
bool BilledResourceUtilizationHasBeenSet() const
Session & WithCreatedAt(CreatedAtT &&value)
bool StartedAtHasBeenSet() const
void SetUpdatedAt(UpdatedAtT &&value)
bool EndedAtHasBeenSet() const
Session & WithArn(ArnT &&value)
AWS_EMRSERVERLESS_API Session(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetReleaseLabel() const
bool NameHasBeenSet() const
AWS_EMRSERVERLESS_API Session()=default
Session & WithEndedAt(EndedAtT &&value)
Session & WithUpdatedAt(UpdatedAtT &&value)
Session & WithStateDetails(StateDetailsT &&value)
Session & WithName(NameT &&value)
const Aws::Utils::DateTime & GetStartedAt() const
const SessionConfigurationOverrides & GetConfigurationOverrides() const
void SetCreatedAt(CreatedAtT &&value)
bool ExecutionRoleArnHasBeenSet() const
void SetNetworkConfiguration(NetworkConfigurationT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue