AWS SDK for C++

AWS SDK for C++ Version 1.11.875

Loading...
Searching...
No Matches
ManagedInstancesProvider.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/batch/model/InfrastructureOptimization.h>
9#include <aws/batch/model/InstanceLaunchTemplate.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Batch {
22namespace Model {
23
33 public:
34 AWS_BATCH_API ManagedInstancesProvider() = default;
37 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
47 inline const Aws::String& GetPropagateTags() const { return m_propagateTags; }
48 inline bool PropagateTagsHasBeenSet() const { return m_propagateTagsHasBeenSet; }
49 template <typename PropagateTagsT = Aws::String>
50 void SetPropagateTags(PropagateTagsT&& value) {
51 m_propagateTagsHasBeenSet = true;
52 m_propagateTags = std::forward<PropagateTagsT>(value);
53 }
54 template <typename PropagateTagsT = Aws::String>
56 SetPropagateTags(std::forward<PropagateTagsT>(value));
57 return *this;
58 }
60
62
69 inline const Aws::String& GetInfrastructureRoleArn() const { return m_infrastructureRoleArn; }
70 inline bool InfrastructureRoleArnHasBeenSet() const { return m_infrastructureRoleArnHasBeenSet; }
71 template <typename InfrastructureRoleArnT = Aws::String>
72 void SetInfrastructureRoleArn(InfrastructureRoleArnT&& value) {
73 m_infrastructureRoleArnHasBeenSet = true;
74 m_infrastructureRoleArn = std::forward<InfrastructureRoleArnT>(value);
75 }
76 template <typename InfrastructureRoleArnT = Aws::String>
77 ManagedInstancesProvider& WithInfrastructureRoleArn(InfrastructureRoleArnT&& value) {
78 SetInfrastructureRoleArn(std::forward<InfrastructureRoleArnT>(value));
79 return *this;
80 }
82
84
89 inline const InstanceLaunchTemplate& GetInstanceLaunchTemplate() const { return m_instanceLaunchTemplate; }
90 inline bool InstanceLaunchTemplateHasBeenSet() const { return m_instanceLaunchTemplateHasBeenSet; }
91 template <typename InstanceLaunchTemplateT = InstanceLaunchTemplate>
92 void SetInstanceLaunchTemplate(InstanceLaunchTemplateT&& value) {
93 m_instanceLaunchTemplateHasBeenSet = true;
94 m_instanceLaunchTemplate = std::forward<InstanceLaunchTemplateT>(value);
95 }
96 template <typename InstanceLaunchTemplateT = InstanceLaunchTemplate>
97 ManagedInstancesProvider& WithInstanceLaunchTemplate(InstanceLaunchTemplateT&& value) {
98 SetInstanceLaunchTemplate(std::forward<InstanceLaunchTemplateT>(value));
99 return *this;
100 }
102
104
108 inline const InfrastructureOptimization& GetInfrastructureOptimization() const { return m_infrastructureOptimization; }
109 inline bool InfrastructureOptimizationHasBeenSet() const { return m_infrastructureOptimizationHasBeenSet; }
110 template <typename InfrastructureOptimizationT = InfrastructureOptimization>
111 void SetInfrastructureOptimization(InfrastructureOptimizationT&& value) {
112 m_infrastructureOptimizationHasBeenSet = true;
113 m_infrastructureOptimization = std::forward<InfrastructureOptimizationT>(value);
114 }
115 template <typename InfrastructureOptimizationT = InfrastructureOptimization>
116 ManagedInstancesProvider& WithInfrastructureOptimization(InfrastructureOptimizationT&& value) {
117 SetInfrastructureOptimization(std::forward<InfrastructureOptimizationT>(value));
118 return *this;
119 }
121 private:
122 Aws::String m_propagateTags;
123
124 Aws::String m_infrastructureRoleArn;
125
126 InstanceLaunchTemplate m_instanceLaunchTemplate;
127
128 InfrastructureOptimization m_infrastructureOptimization;
129 bool m_propagateTagsHasBeenSet = false;
130 bool m_infrastructureRoleArnHasBeenSet = false;
131 bool m_instanceLaunchTemplateHasBeenSet = false;
132 bool m_infrastructureOptimizationHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace Batch
137} // namespace Aws
void SetInfrastructureRoleArn(InfrastructureRoleArnT &&value)
ManagedInstancesProvider & WithInfrastructureOptimization(InfrastructureOptimizationT &&value)
void SetInfrastructureOptimization(InfrastructureOptimizationT &&value)
AWS_BATCH_API ManagedInstancesProvider(Aws::Utils::Json::JsonView jsonValue)
void SetInstanceLaunchTemplate(InstanceLaunchTemplateT &&value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
const InstanceLaunchTemplate & GetInstanceLaunchTemplate() const
ManagedInstancesProvider & WithInstanceLaunchTemplate(InstanceLaunchTemplateT &&value)
ManagedInstancesProvider & WithInfrastructureRoleArn(InfrastructureRoleArnT &&value)
ManagedInstancesProvider & WithPropagateTags(PropagateTagsT &&value)
AWS_BATCH_API ManagedInstancesProvider & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API ManagedInstancesProvider()=default
const InfrastructureOptimization & GetInfrastructureOptimization() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue