AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EC2InstanceDetails.h
1
6#pragma once
7#include <aws/ce/CostExplorer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CostExplorer
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_COSTEXPLORER_API EC2InstanceDetails();
36 AWS_COSTEXPLORER_API EC2InstanceDetails(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetFamily() const{ return m_family; }
46 inline bool FamilyHasBeenSet() const { return m_familyHasBeenSet; }
47 inline void SetFamily(const Aws::String& value) { m_familyHasBeenSet = true; m_family = value; }
48 inline void SetFamily(Aws::String&& value) { m_familyHasBeenSet = true; m_family = std::move(value); }
49 inline void SetFamily(const char* value) { m_familyHasBeenSet = true; m_family.assign(value); }
50 inline EC2InstanceDetails& WithFamily(const Aws::String& value) { SetFamily(value); return *this;}
51 inline EC2InstanceDetails& WithFamily(Aws::String&& value) { SetFamily(std::move(value)); return *this;}
52 inline EC2InstanceDetails& WithFamily(const char* value) { SetFamily(value); return *this;}
54
56
59 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
60 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
61 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
62 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
63 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
64 inline EC2InstanceDetails& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
65 inline EC2InstanceDetails& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
66 inline EC2InstanceDetails& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
68
70
73 inline const Aws::String& GetRegion() const{ return m_region; }
74 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
75 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
76 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
77 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
78 inline EC2InstanceDetails& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
79 inline EC2InstanceDetails& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
80 inline EC2InstanceDetails& WithRegion(const char* value) { SetRegion(value); return *this;}
82
84
87 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
88 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
89 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
90 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
91 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
92 inline EC2InstanceDetails& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
93 inline EC2InstanceDetails& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
94 inline EC2InstanceDetails& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
96
98
102 inline const Aws::String& GetPlatform() const{ return m_platform; }
103 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
104 inline void SetPlatform(const Aws::String& value) { m_platformHasBeenSet = true; m_platform = value; }
105 inline void SetPlatform(Aws::String&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
106 inline void SetPlatform(const char* value) { m_platformHasBeenSet = true; m_platform.assign(value); }
107 inline EC2InstanceDetails& WithPlatform(const Aws::String& value) { SetPlatform(value); return *this;}
108 inline EC2InstanceDetails& WithPlatform(Aws::String&& value) { SetPlatform(std::move(value)); return *this;}
109 inline EC2InstanceDetails& WithPlatform(const char* value) { SetPlatform(value); return *this;}
111
113
116 inline const Aws::String& GetTenancy() const{ return m_tenancy; }
117 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
118 inline void SetTenancy(const Aws::String& value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
119 inline void SetTenancy(Aws::String&& value) { m_tenancyHasBeenSet = true; m_tenancy = std::move(value); }
120 inline void SetTenancy(const char* value) { m_tenancyHasBeenSet = true; m_tenancy.assign(value); }
121 inline EC2InstanceDetails& WithTenancy(const Aws::String& value) { SetTenancy(value); return *this;}
122 inline EC2InstanceDetails& WithTenancy(Aws::String&& value) { SetTenancy(std::move(value)); return *this;}
123 inline EC2InstanceDetails& WithTenancy(const char* value) { SetTenancy(value); return *this;}
125
127
131 inline bool GetCurrentGeneration() const{ return m_currentGeneration; }
132 inline bool CurrentGenerationHasBeenSet() const { return m_currentGenerationHasBeenSet; }
133 inline void SetCurrentGeneration(bool value) { m_currentGenerationHasBeenSet = true; m_currentGeneration = value; }
134 inline EC2InstanceDetails& WithCurrentGeneration(bool value) { SetCurrentGeneration(value); return *this;}
136
138
141 inline bool GetSizeFlexEligible() const{ return m_sizeFlexEligible; }
142 inline bool SizeFlexEligibleHasBeenSet() const { return m_sizeFlexEligibleHasBeenSet; }
143 inline void SetSizeFlexEligible(bool value) { m_sizeFlexEligibleHasBeenSet = true; m_sizeFlexEligible = value; }
144 inline EC2InstanceDetails& WithSizeFlexEligible(bool value) { SetSizeFlexEligible(value); return *this;}
146 private:
147
148 Aws::String m_family;
149 bool m_familyHasBeenSet = false;
150
151 Aws::String m_instanceType;
152 bool m_instanceTypeHasBeenSet = false;
153
154 Aws::String m_region;
155 bool m_regionHasBeenSet = false;
156
157 Aws::String m_availabilityZone;
158 bool m_availabilityZoneHasBeenSet = false;
159
160 Aws::String m_platform;
161 bool m_platformHasBeenSet = false;
162
163 Aws::String m_tenancy;
164 bool m_tenancyHasBeenSet = false;
165
166 bool m_currentGeneration;
167 bool m_currentGenerationHasBeenSet = false;
168
169 bool m_sizeFlexEligible;
170 bool m_sizeFlexEligibleHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace CostExplorer
175} // namespace Aws
EC2InstanceDetails & WithPlatform(Aws::String &&value)
void SetAvailabilityZone(const Aws::String &value)
EC2InstanceDetails & WithFamily(Aws::String &&value)
EC2InstanceDetails & WithPlatform(const Aws::String &value)
void SetInstanceType(const Aws::String &value)
AWS_COSTEXPLORER_API EC2InstanceDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
EC2InstanceDetails & WithInstanceType(Aws::String &&value)
EC2InstanceDetails & WithRegion(Aws::String &&value)
EC2InstanceDetails & WithPlatform(const char *value)
EC2InstanceDetails & WithAvailabilityZone(Aws::String &&value)
EC2InstanceDetails & WithCurrentGeneration(bool value)
EC2InstanceDetails & WithRegion(const Aws::String &value)
EC2InstanceDetails & WithTenancy(const Aws::String &value)
AWS_COSTEXPLORER_API EC2InstanceDetails(Aws::Utils::Json::JsonView jsonValue)
EC2InstanceDetails & WithTenancy(const char *value)
EC2InstanceDetails & WithRegion(const char *value)
EC2InstanceDetails & WithInstanceType(const char *value)
EC2InstanceDetails & WithInstanceType(const Aws::String &value)
EC2InstanceDetails & WithFamily(const Aws::String &value)
EC2InstanceDetails & WithFamily(const char *value)
EC2InstanceDetails & WithSizeFlexEligible(bool value)
EC2InstanceDetails & WithAvailabilityZone(const Aws::String &value)
EC2InstanceDetails & WithAvailabilityZone(const char *value)
AWS_COSTEXPLORER_API Aws::Utils::Json::JsonValue Jsonize() const
EC2InstanceDetails & WithTenancy(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue