AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PlacementGroupConfig.h
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
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EMR
23{
24namespace Model
25{
26
37 {
38 public:
39 AWS_EMR_API PlacementGroupConfig();
43
44
46
50 inline const InstanceRoleType& GetInstanceRole() const{ return m_instanceRole; }
51 inline bool InstanceRoleHasBeenSet() const { return m_instanceRoleHasBeenSet; }
52 inline void SetInstanceRole(const InstanceRoleType& value) { m_instanceRoleHasBeenSet = true; m_instanceRole = value; }
53 inline void SetInstanceRole(InstanceRoleType&& value) { m_instanceRoleHasBeenSet = true; m_instanceRole = std::move(value); }
54 inline PlacementGroupConfig& WithInstanceRole(const InstanceRoleType& value) { SetInstanceRole(value); return *this;}
55 inline PlacementGroupConfig& WithInstanceRole(InstanceRoleType&& value) { SetInstanceRole(std::move(value)); return *this;}
57
59
64 inline const PlacementGroupStrategy& GetPlacementStrategy() const{ return m_placementStrategy; }
65 inline bool PlacementStrategyHasBeenSet() const { return m_placementStrategyHasBeenSet; }
66 inline void SetPlacementStrategy(const PlacementGroupStrategy& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy = value; }
67 inline void SetPlacementStrategy(PlacementGroupStrategy&& value) { m_placementStrategyHasBeenSet = true; m_placementStrategy = std::move(value); }
71 private:
72
73 InstanceRoleType m_instanceRole;
74 bool m_instanceRoleHasBeenSet = false;
75
76 PlacementGroupStrategy m_placementStrategy;
77 bool m_placementStrategyHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace EMR
82} // namespace Aws
const PlacementGroupStrategy & GetPlacementStrategy() const
PlacementGroupConfig & WithPlacementStrategy(PlacementGroupStrategy &&value)
PlacementGroupConfig & WithPlacementStrategy(const PlacementGroupStrategy &value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMR_API PlacementGroupConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetInstanceRole(InstanceRoleType &&value)
PlacementGroupConfig & WithInstanceRole(const InstanceRoleType &value)
PlacementGroupConfig & WithInstanceRole(InstanceRoleType &&value)
void SetPlacementStrategy(const PlacementGroupStrategy &value)
AWS_EMR_API PlacementGroupConfig(Aws::Utils::Json::JsonView jsonValue)
void SetPlacementStrategy(PlacementGroupStrategy &&value)
void SetInstanceRole(const InstanceRoleType &value)
const InstanceRoleType & GetInstanceRole() const
Aws::Utils::Json::JsonValue JsonValue