AWS SDK for C++
1.8.126
AWS SDK for C++
aws-cpp-sdk-elasticmapreduce
include
aws
elasticmapreduce
model
PlacementGroupConfig.h
Go to the documentation of this file.
1
6
#pragma once
7
#include <
aws/elasticmapreduce/EMR_EXPORTS.h
>
8
#include <
aws/elasticmapreduce/model/InstanceRoleType.h
>
9
#include <
aws/elasticmapreduce/model/PlacementGroupStrategy.h
>
10
#include <utility>
11
12
namespace
Aws
13
{
14
namespace
Utils
15
{
16
namespace
Json
17
{
18
class
JsonValue;
19
class
JsonView;
20
}
// namespace Json
21
}
// namespace Utils
22
namespace
EMR
23
{
24
namespace
Model
25
{
26
36
class
AWS_EMR_API
PlacementGroupConfig
37
{
38
public
:
39
PlacementGroupConfig
();
40
PlacementGroupConfig
(
Aws::Utils::Json::JsonView
jsonValue);
41
PlacementGroupConfig
&
operator=
(
Aws::Utils::Json::JsonView
jsonValue);
42
Aws::Utils::Json::JsonValue
Jsonize
()
const
;
43
44
49
inline
const
InstanceRoleType
&
GetInstanceRole
()
const
{
return
m_instanceRole; }
50
55
inline
bool
InstanceRoleHasBeenSet
()
const
{
return
m_instanceRoleHasBeenSet; }
56
61
inline
void
SetInstanceRole
(
const
InstanceRoleType
& value) { m_instanceRoleHasBeenSet =
true
; m_instanceRole = value; }
62
67
inline
void
SetInstanceRole
(
InstanceRoleType
&& value) { m_instanceRoleHasBeenSet =
true
; m_instanceRole = std::move(value); }
68
73
inline
PlacementGroupConfig
&
WithInstanceRole
(
const
InstanceRoleType
& value) { SetInstanceRole(value);
return
*
this
;}
74
79
inline
PlacementGroupConfig
&
WithInstanceRole
(
InstanceRoleType
&& value) { SetInstanceRole(std::move(value));
return
*
this
;}
80
81
87
inline
const
PlacementGroupStrategy
&
GetPlacementStrategy
()
const
{
return
m_placementStrategy; }
88
94
inline
bool
PlacementStrategyHasBeenSet
()
const
{
return
m_placementStrategyHasBeenSet; }
95
101
inline
void
SetPlacementStrategy
(
const
PlacementGroupStrategy
& value) { m_placementStrategyHasBeenSet =
true
; m_placementStrategy = value; }
102
108
inline
void
SetPlacementStrategy
(
PlacementGroupStrategy
&& value) { m_placementStrategyHasBeenSet =
true
; m_placementStrategy = std::move(value); }
109
115
inline
PlacementGroupConfig
&
WithPlacementStrategy
(
const
PlacementGroupStrategy
& value) { SetPlacementStrategy(value);
return
*
this
;}
116
122
inline
PlacementGroupConfig
&
WithPlacementStrategy
(
PlacementGroupStrategy
&& value) { SetPlacementStrategy(std::move(value));
return
*
this
;}
123
124
private
:
125
126
InstanceRoleType
m_instanceRole;
127
bool
m_instanceRoleHasBeenSet;
128
129
PlacementGroupStrategy
m_placementStrategy;
130
bool
m_placementStrategyHasBeenSet;
131
};
132
133
}
// namespace Model
134
}
// namespace EMR
135
}
// namespace Aws
Aws::EMR::Model::PlacementGroupConfig::PlacementStrategyHasBeenSet
bool PlacementStrategyHasBeenSet() const
Definition:
PlacementGroupConfig.h:94
InstanceRoleType.h
Aws::EMR::Model::InstanceRoleType
InstanceRoleType
Definition:
InstanceRoleType.h:17
Aws::EMR::Model::PlacementGroupConfig::WithPlacementStrategy
PlacementGroupConfig & WithPlacementStrategy(PlacementGroupStrategy &&value)
Definition:
PlacementGroupConfig.h:122
EMR_EXPORTS.h
Aws::EMR::Model::PlacementGroupStrategy
PlacementGroupStrategy
Definition:
PlacementGroupStrategy.h:17
Aws::EMR::Model::PlacementGroupConfig::WithPlacementStrategy
PlacementGroupConfig & WithPlacementStrategy(const PlacementGroupStrategy &value)
Definition:
PlacementGroupConfig.h:115
Aws::EMR::Model::PlacementGroupConfig
Definition:
PlacementGroupConfig.h:37
Aws::EMR::Model::PlacementGroupConfig::GetInstanceRole
const InstanceRoleType & GetInstanceRole() const
Definition:
PlacementGroupConfig.h:49
Aws::EMR::Model::PlacementGroupConfig::operator=
PlacementGroupConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::PlacementGroupConfig::WithInstanceRole
PlacementGroupConfig & WithInstanceRole(InstanceRoleType &&value)
Definition:
PlacementGroupConfig.h:79
Aws::EMR::Model::PlacementGroupConfig::SetPlacementStrategy
void SetPlacementStrategy(const PlacementGroupStrategy &value)
Definition:
PlacementGroupConfig.h:101
Aws::EMR::Model::PlacementGroupConfig::SetInstanceRole
void SetInstanceRole(InstanceRoleType &&value)
Definition:
PlacementGroupConfig.h:67
Aws::EMR::Model::PlacementGroupConfig::InstanceRoleHasBeenSet
bool InstanceRoleHasBeenSet() const
Definition:
PlacementGroupConfig.h:55
Aws::EMR::Model::PlacementGroupConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::PlacementGroupConfig::GetPlacementStrategy
const PlacementGroupStrategy & GetPlacementStrategy() const
Definition:
PlacementGroupConfig.h:87
Aws::EMR::Model::PlacementGroupConfig::PlacementGroupConfig
PlacementGroupConfig()
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition:
JsonSerializer.h:222
Aws::Utils::Json::JsonValue
Definition:
JsonSerializer.h:30
Aws::EMR::Model::PlacementGroupConfig::SetInstanceRole
void SetInstanceRole(const InstanceRoleType &value)
Definition:
PlacementGroupConfig.h:61
Aws::EMR::Model::PlacementGroupConfig::WithInstanceRole
PlacementGroupConfig & WithInstanceRole(const InstanceRoleType &value)
Definition:
PlacementGroupConfig.h:73
Aws
Definition:
AccessManagementClient.h:15
Aws::EMR::Model::PlacementGroupConfig::PlacementGroupConfig
PlacementGroupConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::PlacementGroupConfig::SetPlacementStrategy
void SetPlacementStrategy(PlacementGroupStrategy &&value)
Definition:
PlacementGroupConfig.h:108
PlacementGroupStrategy.h
AWS_EMR_API
#define AWS_EMR_API
Definition:
EMR_EXPORTS.h:28
Generated by
1.8.19
Privacy |
Site terms |
Cookie preferences