AWS SDK for C++  1.9.19
AWS SDK for C++
InstanceFleet.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23  class JsonView;
24 } // namespace Json
25 } // namespace Utils
26 namespace EMR
27 {
28 namespace Model
29 {
30 
42  {
43  public:
48 
49 
53  inline const Aws::String& GetId() const{ return m_id; }
54 
58  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
59 
63  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
64 
68  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
69 
73  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
74 
78  inline InstanceFleet& WithId(const Aws::String& value) { SetId(value); return *this;}
79 
83  inline InstanceFleet& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
84 
88  inline InstanceFleet& WithId(const char* value) { SetId(value); return *this;}
89 
90 
94  inline const Aws::String& GetName() const{ return m_name; }
95 
99  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
100 
104  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
105 
109  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
110 
114  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
115 
119  inline InstanceFleet& WithName(const Aws::String& value) { SetName(value); return *this;}
120 
124  inline InstanceFleet& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
125 
129  inline InstanceFleet& WithName(const char* value) { SetName(value); return *this;}
130 
131 
135  inline const InstanceFleetStatus& GetStatus() const{ return m_status; }
136 
140  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
141 
145  inline void SetStatus(const InstanceFleetStatus& value) { m_statusHasBeenSet = true; m_status = value; }
146 
150  inline void SetStatus(InstanceFleetStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
151 
155  inline InstanceFleet& WithStatus(const InstanceFleetStatus& value) { SetStatus(value); return *this;}
156 
160  inline InstanceFleet& WithStatus(InstanceFleetStatus&& value) { SetStatus(std::move(value)); return *this;}
161 
162 
167  inline const InstanceFleetType& GetInstanceFleetType() const{ return m_instanceFleetType; }
168 
173  inline bool InstanceFleetTypeHasBeenSet() const { return m_instanceFleetTypeHasBeenSet; }
174 
179  inline void SetInstanceFleetType(const InstanceFleetType& value) { m_instanceFleetTypeHasBeenSet = true; m_instanceFleetType = value; }
180 
185  inline void SetInstanceFleetType(InstanceFleetType&& value) { m_instanceFleetTypeHasBeenSet = true; m_instanceFleetType = std::move(value); }
186 
191  inline InstanceFleet& WithInstanceFleetType(const InstanceFleetType& value) { SetInstanceFleetType(value); return *this;}
192 
197  inline InstanceFleet& WithInstanceFleetType(InstanceFleetType&& value) { SetInstanceFleetType(std::move(value)); return *this;}
198 
199 
221  inline int GetTargetOnDemandCapacity() const{ return m_targetOnDemandCapacity; }
222 
244  inline bool TargetOnDemandCapacityHasBeenSet() const { return m_targetOnDemandCapacityHasBeenSet; }
245 
267  inline void SetTargetOnDemandCapacity(int value) { m_targetOnDemandCapacityHasBeenSet = true; m_targetOnDemandCapacity = value; }
268 
290  inline InstanceFleet& WithTargetOnDemandCapacity(int value) { SetTargetOnDemandCapacity(value); return *this;}
291 
292 
313  inline int GetTargetSpotCapacity() const{ return m_targetSpotCapacity; }
314 
335  inline bool TargetSpotCapacityHasBeenSet() const { return m_targetSpotCapacityHasBeenSet; }
336 
357  inline void SetTargetSpotCapacity(int value) { m_targetSpotCapacityHasBeenSet = true; m_targetSpotCapacity = value; }
358 
379  inline InstanceFleet& WithTargetSpotCapacity(int value) { SetTargetSpotCapacity(value); return *this;}
380 
381 
387  inline int GetProvisionedOnDemandCapacity() const{ return m_provisionedOnDemandCapacity; }
388 
394  inline bool ProvisionedOnDemandCapacityHasBeenSet() const { return m_provisionedOnDemandCapacityHasBeenSet; }
395 
401  inline void SetProvisionedOnDemandCapacity(int value) { m_provisionedOnDemandCapacityHasBeenSet = true; m_provisionedOnDemandCapacity = value; }
402 
408  inline InstanceFleet& WithProvisionedOnDemandCapacity(int value) { SetProvisionedOnDemandCapacity(value); return *this;}
409 
410 
416  inline int GetProvisionedSpotCapacity() const{ return m_provisionedSpotCapacity; }
417 
423  inline bool ProvisionedSpotCapacityHasBeenSet() const { return m_provisionedSpotCapacityHasBeenSet; }
424 
430  inline void SetProvisionedSpotCapacity(int value) { m_provisionedSpotCapacityHasBeenSet = true; m_provisionedSpotCapacity = value; }
431 
437  inline InstanceFleet& WithProvisionedSpotCapacity(int value) { SetProvisionedSpotCapacity(value); return *this;}
438 
439 
445  inline const Aws::Vector<InstanceTypeSpecification>& GetInstanceTypeSpecifications() const{ return m_instanceTypeSpecifications; }
446 
452  inline bool InstanceTypeSpecificationsHasBeenSet() const { return m_instanceTypeSpecificationsHasBeenSet; }
453 
459  inline void SetInstanceTypeSpecifications(const Aws::Vector<InstanceTypeSpecification>& value) { m_instanceTypeSpecificationsHasBeenSet = true; m_instanceTypeSpecifications = value; }
460 
466  inline void SetInstanceTypeSpecifications(Aws::Vector<InstanceTypeSpecification>&& value) { m_instanceTypeSpecificationsHasBeenSet = true; m_instanceTypeSpecifications = std::move(value); }
467 
473  inline InstanceFleet& WithInstanceTypeSpecifications(const Aws::Vector<InstanceTypeSpecification>& value) { SetInstanceTypeSpecifications(value); return *this;}
474 
480  inline InstanceFleet& WithInstanceTypeSpecifications(Aws::Vector<InstanceTypeSpecification>&& value) { SetInstanceTypeSpecifications(std::move(value)); return *this;}
481 
487  inline InstanceFleet& AddInstanceTypeSpecifications(const InstanceTypeSpecification& value) { m_instanceTypeSpecificationsHasBeenSet = true; m_instanceTypeSpecifications.push_back(value); return *this; }
488 
494  inline InstanceFleet& AddInstanceTypeSpecifications(InstanceTypeSpecification&& value) { m_instanceTypeSpecificationsHasBeenSet = true; m_instanceTypeSpecifications.push_back(std::move(value)); return *this; }
495 
496 
500  inline const InstanceFleetProvisioningSpecifications& GetLaunchSpecifications() const{ return m_launchSpecifications; }
501 
505  inline bool LaunchSpecificationsHasBeenSet() const { return m_launchSpecificationsHasBeenSet; }
506 
510  inline void SetLaunchSpecifications(const InstanceFleetProvisioningSpecifications& value) { m_launchSpecificationsHasBeenSet = true; m_launchSpecifications = value; }
511 
515  inline void SetLaunchSpecifications(InstanceFleetProvisioningSpecifications&& value) { m_launchSpecificationsHasBeenSet = true; m_launchSpecifications = std::move(value); }
516 
520  inline InstanceFleet& WithLaunchSpecifications(const InstanceFleetProvisioningSpecifications& value) { SetLaunchSpecifications(value); return *this;}
521 
525  inline InstanceFleet& WithLaunchSpecifications(InstanceFleetProvisioningSpecifications&& value) { SetLaunchSpecifications(std::move(value)); return *this;}
526 
527  private:
528 
529  Aws::String m_id;
530  bool m_idHasBeenSet;
531 
532  Aws::String m_name;
533  bool m_nameHasBeenSet;
534 
535  InstanceFleetStatus m_status;
536  bool m_statusHasBeenSet;
537 
538  InstanceFleetType m_instanceFleetType;
539  bool m_instanceFleetTypeHasBeenSet;
540 
541  int m_targetOnDemandCapacity;
542  bool m_targetOnDemandCapacityHasBeenSet;
543 
544  int m_targetSpotCapacity;
545  bool m_targetSpotCapacityHasBeenSet;
546 
547  int m_provisionedOnDemandCapacity;
548  bool m_provisionedOnDemandCapacityHasBeenSet;
549 
550  int m_provisionedSpotCapacity;
551  bool m_provisionedSpotCapacityHasBeenSet;
552 
553  Aws::Vector<InstanceTypeSpecification> m_instanceTypeSpecifications;
554  bool m_instanceTypeSpecificationsHasBeenSet;
555 
556  InstanceFleetProvisioningSpecifications m_launchSpecifications;
557  bool m_launchSpecificationsHasBeenSet;
558  };
559 
560 } // namespace Model
561 } // namespace EMR
562 } // namespace Aws
Aws::EMR::Model::InstanceFleet::NameHasBeenSet
bool NameHasBeenSet() const
Definition: InstanceFleet.h:99
Aws::EMR::Model::InstanceFleet::GetTargetSpotCapacity
int GetTargetSpotCapacity() const
Definition: InstanceFleet.h:313
Aws::EMR::Model::InstanceFleet::InstanceTypeSpecificationsHasBeenSet
bool InstanceTypeSpecificationsHasBeenSet() const
Definition: InstanceFleet.h:452
Aws::EMR::Model::InstanceFleet::WithLaunchSpecifications
InstanceFleet & WithLaunchSpecifications(const InstanceFleetProvisioningSpecifications &value)
Definition: InstanceFleet.h:520
Aws::EMR::Model::InstanceFleet::WithName
InstanceFleet & WithName(const Aws::String &value)
Definition: InstanceFleet.h:119
Aws::EMR::Model::InstanceFleet::SetLaunchSpecifications
void SetLaunchSpecifications(InstanceFleetProvisioningSpecifications &&value)
Definition: InstanceFleet.h:515
EMR_EXPORTS.h
Aws::EMR::Model::InstanceFleet::SetName
void SetName(Aws::String &&value)
Definition: InstanceFleet.h:109
Aws::EMR::Model::InstanceFleetStatus
Definition: InstanceFleetStatus.h:36
Aws::EMR::Model::InstanceFleet::WithInstanceTypeSpecifications
InstanceFleet & WithInstanceTypeSpecifications(const Aws::Vector< InstanceTypeSpecification > &value)
Definition: InstanceFleet.h:473
Aws::EMR::Model::InstanceFleet::SetId
void SetId(const char *value)
Definition: InstanceFleet.h:73
Aws::EMR::Model::InstanceFleet::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::EMR::Model::InstanceFleet::WithId
InstanceFleet & WithId(const char *value)
Definition: InstanceFleet.h:88
Aws::EMR::Model::InstanceFleet::AddInstanceTypeSpecifications
InstanceFleet & AddInstanceTypeSpecifications(InstanceTypeSpecification &&value)
Definition: InstanceFleet.h:494
Aws::EMR::Model::InstanceFleet::SetTargetOnDemandCapacity
void SetTargetOnDemandCapacity(int value)
Definition: InstanceFleet.h:267
Aws::EMR::Model::InstanceFleetProvisioningSpecifications
Definition: InstanceFleetProvisioningSpecifications.h:38
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EMR::Model::InstanceFleet::InstanceFleet
InstanceFleet(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::InstanceFleet::AddInstanceTypeSpecifications
InstanceFleet & AddInstanceTypeSpecifications(const InstanceTypeSpecification &value)
Definition: InstanceFleet.h:487
Aws::EMR::Model::InstanceFleet::SetStatus
void SetStatus(InstanceFleetStatus &&value)
Definition: InstanceFleet.h:150
Aws::EMR::Model::InstanceFleet::WithStatus
InstanceFleet & WithStatus(InstanceFleetStatus &&value)
Definition: InstanceFleet.h:160
AWSVector.h
Aws::EMR::Model::InstanceFleet::WithName
InstanceFleet & WithName(const char *value)
Definition: InstanceFleet.h:129
Aws::EMR::Model::InstanceFleet::InstanceFleetTypeHasBeenSet
bool InstanceFleetTypeHasBeenSet() const
Definition: InstanceFleet.h:173
InstanceFleetStatus.h
Aws::EMR::Model::InstanceFleet::LaunchSpecificationsHasBeenSet
bool LaunchSpecificationsHasBeenSet() const
Definition: InstanceFleet.h:505
Aws::EMR::Model::InstanceFleet::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: InstanceFleet.h:140
Aws::EMR::Model::InstanceFleet::GetInstanceTypeSpecifications
const Aws::Vector< InstanceTypeSpecification > & GetInstanceTypeSpecifications() const
Definition: InstanceFleet.h:445
Aws::EMR::Model::InstanceFleet::SetName
void SetName(const char *value)
Definition: InstanceFleet.h:114
Aws::EMR::Model::InstanceFleet::TargetOnDemandCapacityHasBeenSet
bool TargetOnDemandCapacityHasBeenSet() const
Definition: InstanceFleet.h:244
Aws::EMR::Model::InstanceFleet::WithProvisionedOnDemandCapacity
InstanceFleet & WithProvisionedOnDemandCapacity(int value)
Definition: InstanceFleet.h:408
Aws::EMR::Model::InstanceFleet::GetStatus
const InstanceFleetStatus & GetStatus() const
Definition: InstanceFleet.h:135
Aws::EMR::Model::InstanceFleet::SetLaunchSpecifications
void SetLaunchSpecifications(const InstanceFleetProvisioningSpecifications &value)
Definition: InstanceFleet.h:510
Aws::EMR::Model::InstanceFleet::WithInstanceFleetType
InstanceFleet & WithInstanceFleetType(const InstanceFleetType &value)
Definition: InstanceFleet.h:191
Aws::EMR::Model::InstanceFleet::WithInstanceTypeSpecifications
InstanceFleet & WithInstanceTypeSpecifications(Aws::Vector< InstanceTypeSpecification > &&value)
Definition: InstanceFleet.h:480
Aws::EMR::Model::InstanceFleet::SetId
void SetId(const Aws::String &value)
Definition: InstanceFleet.h:63
Aws::EMR::Model::InstanceFleet::IdHasBeenSet
bool IdHasBeenSet() const
Definition: InstanceFleet.h:58
Aws::EMR::Model::InstanceFleet::WithId
InstanceFleet & WithId(Aws::String &&value)
Definition: InstanceFleet.h:83
Aws::EMR::Model::InstanceFleetType
InstanceFleetType
Definition: InstanceFleetType.h:17
Aws::EMR::Model::ExecutionEngineType::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::EMR::Model::InstanceFleet::WithLaunchSpecifications
InstanceFleet & WithLaunchSpecifications(InstanceFleetProvisioningSpecifications &&value)
Definition: InstanceFleet.h:525
AWSString.h
Aws::EMR::Model::InstanceFleet::WithProvisionedSpotCapacity
InstanceFleet & WithProvisionedSpotCapacity(int value)
Definition: InstanceFleet.h:437
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::EMR::Model::InstanceFleet::InstanceFleet
InstanceFleet()
Aws::EMR::Model::InstanceFleet::SetInstanceFleetType
void SetInstanceFleetType(const InstanceFleetType &value)
Definition: InstanceFleet.h:179
Aws::EMR::Model::InstanceFleet::TargetSpotCapacityHasBeenSet
bool TargetSpotCapacityHasBeenSet() const
Definition: InstanceFleet.h:335
Aws::EMR::Model::InstanceFleet::GetTargetOnDemandCapacity
int GetTargetOnDemandCapacity() const
Definition: InstanceFleet.h:221
Aws::EMR::Model::InstanceFleet::GetName
const Aws::String & GetName() const
Definition: InstanceFleet.h:94
Aws::EMR::Model::InstanceFleet::ProvisionedOnDemandCapacityHasBeenSet
bool ProvisionedOnDemandCapacityHasBeenSet() const
Definition: InstanceFleet.h:394
Aws::EMR::Model::InstanceTypeSpecification
Definition: InstanceTypeSpecification.h:38
Aws::EMR::Model::InstanceFleet::WithTargetSpotCapacity
InstanceFleet & WithTargetSpotCapacity(int value)
Definition: InstanceFleet.h:379
InstanceFleetProvisioningSpecifications.h
InstanceTypeSpecification.h
Aws::EMR::Model::InstanceFleet::WithTargetOnDemandCapacity
InstanceFleet & WithTargetOnDemandCapacity(int value)
Definition: InstanceFleet.h:290
Aws::EMR::Model::InstanceFleet::SetProvisionedSpotCapacity
void SetProvisionedSpotCapacity(int value)
Definition: InstanceFleet.h:430
Aws::EMR::Model::InstanceFleet::GetInstanceFleetType
const InstanceFleetType & GetInstanceFleetType() const
Definition: InstanceFleet.h:167
Aws::EMR::Model::InstanceFleet
Definition: InstanceFleet.h:42
Aws::EMR::Model::InstanceFleet::ProvisionedSpotCapacityHasBeenSet
bool ProvisionedSpotCapacityHasBeenSet() const
Definition: InstanceFleet.h:423
Aws::EMR::Model::InstanceFleet::WithInstanceFleetType
InstanceFleet & WithInstanceFleetType(InstanceFleetType &&value)
Definition: InstanceFleet.h:197
Aws
Definition: AccessManagementClient.h:15
Aws::EMR::Model::InstanceFleet::GetLaunchSpecifications
const InstanceFleetProvisioningSpecifications & GetLaunchSpecifications() const
Definition: InstanceFleet.h:500
Aws::EMR::Model::InstanceFleet::SetInstanceFleetType
void SetInstanceFleetType(InstanceFleetType &&value)
Definition: InstanceFleet.h:185
Aws::EMR::Model::InstanceFleet::GetId
const Aws::String & GetId() const
Definition: InstanceFleet.h:53
Aws::EMR::Model::InstanceFleet::SetInstanceTypeSpecifications
void SetInstanceTypeSpecifications(const Aws::Vector< InstanceTypeSpecification > &value)
Definition: InstanceFleet.h:459
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EMR::Model::InstanceFleet::SetStatus
void SetStatus(const InstanceFleetStatus &value)
Definition: InstanceFleet.h:145
InstanceFleetType.h
Aws::EMR::Model::InstanceFleet::SetName
void SetName(const Aws::String &value)
Definition: InstanceFleet.h:104
Aws::EMR::Model::InstanceFleet::WithId
InstanceFleet & WithId(const Aws::String &value)
Definition: InstanceFleet.h:78
Aws::EMR::Model::InstanceFleet::SetTargetSpotCapacity
void SetTargetSpotCapacity(int value)
Definition: InstanceFleet.h:357
Aws::EMR::Model::InstanceFleet::operator=
InstanceFleet & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::EMR::Model::InstanceFleet::GetProvisionedSpotCapacity
int GetProvisionedSpotCapacity() const
Definition: InstanceFleet.h:416
Aws::EMR::Model::InstanceFleet::SetInstanceTypeSpecifications
void SetInstanceTypeSpecifications(Aws::Vector< InstanceTypeSpecification > &&value)
Definition: InstanceFleet.h:466
Aws::EMR::Model::InstanceFleet::WithStatus
InstanceFleet & WithStatus(const InstanceFleetStatus &value)
Definition: InstanceFleet.h:155
AWS_EMR_API
#define AWS_EMR_API
Definition: EMR_EXPORTS.h:28
Aws::EMR::Model::InstanceFleet::GetProvisionedOnDemandCapacity
int GetProvisionedOnDemandCapacity() const
Definition: InstanceFleet.h:387
Aws::EMR::Model::InstanceFleet::SetId
void SetId(Aws::String &&value)
Definition: InstanceFleet.h:68
Aws::EMR::Model::InstanceFleet::WithName
InstanceFleet & WithName(Aws::String &&value)
Definition: InstanceFleet.h:124
Aws::EMR::Model::InstanceFleet::SetProvisionedOnDemandCapacity
void SetProvisionedOnDemandCapacity(int value)
Definition: InstanceFleet.h:401