7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/lightsail/model/ResourceLocation.h>
11#include <aws/lightsail/model/ResourceType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/lightsail/model/IpAddressType.h>
14#include <aws/lightsail/model/InstanceHardware.h>
15#include <aws/lightsail/model/InstanceNetworking.h>
16#include <aws/lightsail/model/InstanceState.h>
17#include <aws/lightsail/model/InstanceMetadataOptions.h>
18#include <aws/lightsail/model/Tag.h>
19#include <aws/lightsail/model/AddOn.h>
60 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
74 inline void SetArn(
Aws::String&& value) { m_arnHasBeenSet =
true; m_arn = std::move(value); }
75 inline void SetArn(
const char* value) { m_arnHasBeenSet =
true; m_arn.assign(value); }
91 inline void SetSupportCode(
const char* value) { m_supportCodeHasBeenSet =
true; m_supportCode.assign(value); }
147 inline Instance&
AddTags(
const Tag& value) { m_tagsHasBeenSet =
true; m_tags.push_back(value);
return *
this; }
148 inline Instance&
AddTags(
Tag&& value) { m_tagsHasBeenSet =
true; m_tags.push_back(std::move(value));
return *
this; }
159 inline void SetBlueprintId(
const char* value) { m_blueprintIdHasBeenSet =
true; m_blueprintId.assign(value); }
173 inline void SetBlueprintName(
const char* value) { m_blueprintNameHasBeenSet =
true; m_blueprintName.assign(value); }
187 inline void SetBundleId(
const char* value) { m_bundleIdHasBeenSet =
true; m_bundleId.assign(value); }
204 inline Instance&
AddAddOns(
AddOn&& value) { m_addOnsHasBeenSet =
true; m_addOns.push_back(std::move(value));
return *
this; }
214 inline void SetIsStaticIp(
bool value) { m_isStaticIpHasBeenSet =
true; m_isStaticIp = value; }
226 inline void SetPrivateIpAddress(
const char* value) { m_privateIpAddressHasBeenSet =
true; m_privateIpAddress.assign(value); }
240 inline void SetPublicIpAddress(
const char* value) { m_publicIpAddressHasBeenSet =
true; m_publicIpAddress.assign(value); }
258 inline Instance&
AddIpv6Addresses(
const char* value) { m_ipv6AddressesHasBeenSet =
true; m_ipv6Addresses.push_back(value);
return *
this; }
320 inline void SetUsername(
const char* value) { m_usernameHasBeenSet =
true; m_username.assign(value); }
335 inline void SetSshKeyName(
const char* value) { m_sshKeyNameHasBeenSet =
true; m_sshKeyName.assign(value); }
355 bool m_nameHasBeenSet =
false;
358 bool m_arnHasBeenSet =
false;
361 bool m_supportCodeHasBeenSet =
false;
364 bool m_createdAtHasBeenSet =
false;
367 bool m_locationHasBeenSet =
false;
370 bool m_resourceTypeHasBeenSet =
false;
373 bool m_tagsHasBeenSet =
false;
376 bool m_blueprintIdHasBeenSet =
false;
379 bool m_blueprintNameHasBeenSet =
false;
382 bool m_bundleIdHasBeenSet =
false;
385 bool m_addOnsHasBeenSet =
false;
388 bool m_isStaticIpHasBeenSet =
false;
391 bool m_privateIpAddressHasBeenSet =
false;
394 bool m_publicIpAddressHasBeenSet =
false;
397 bool m_ipv6AddressesHasBeenSet =
false;
400 bool m_ipAddressTypeHasBeenSet =
false;
403 bool m_hardwareHasBeenSet =
false;
406 bool m_networkingHasBeenSet =
false;
409 bool m_stateHasBeenSet =
false;
412 bool m_usernameHasBeenSet =
false;
415 bool m_sshKeyNameHasBeenSet =
false;
418 bool m_metadataOptionsHasBeenSet =
false;
Instance & AddIpv6Addresses(const char *value)
const InstanceMetadataOptions & GetMetadataOptions() const
bool UsernameHasBeenSet() const
void SetAddOns(Aws::Vector< AddOn > &&value)
bool Ipv6AddressesHasBeenSet() const
const ResourceType & GetResourceType() const
void SetCreatedAt(Aws::Utils::DateTime &&value)
bool IpAddressTypeHasBeenSet() const
void SetBundleId(const char *value)
Instance & WithResourceType(const ResourceType &value)
void SetBlueprintName(Aws::String &&value)
Instance & WithTags(Aws::Vector< Tag > &&value)
const IpAddressType & GetIpAddressType() const
const Aws::String & GetBlueprintId() const
const Aws::String & GetPublicIpAddress() const
Instance & WithSshKeyName(Aws::String &&value)
Instance & WithArn(Aws::String &&value)
const Aws::String & GetName() const
bool NameHasBeenSet() const
Instance & AddIpv6Addresses(Aws::String &&value)
void SetIpv6Addresses(Aws::Vector< Aws::String > &&value)
const ResourceLocation & GetLocation() const
void SetNetworking(InstanceNetworking &&value)
const Aws::String & GetBundleId() const
void SetIpv6Addresses(const Aws::Vector< Aws::String > &value)
void SetName(const char *value)
void SetPublicIpAddress(const Aws::String &value)
void SetSshKeyName(const Aws::String &value)
void SetBlueprintName(const char *value)
AWS_LIGHTSAIL_API Instance(Aws::Utils::Json::JsonView jsonValue)
bool ArnHasBeenSet() const
bool TagsHasBeenSet() const
Instance & WithState(InstanceState &&value)
Instance & WithSupportCode(const char *value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
Instance & WithBundleId(const Aws::String &value)
Instance & WithIsStaticIp(bool value)
Instance & AddIpv6Addresses(const Aws::String &value)
Instance & WithPrivateIpAddress(const Aws::String &value)
const InstanceHardware & GetHardware() const
void SetMetadataOptions(const InstanceMetadataOptions &value)
bool BlueprintNameHasBeenSet() const
void SetTags(const Aws::Vector< Tag > &value)
Instance & WithBlueprintName(Aws::String &&value)
bool SupportCodeHasBeenSet() const
const Aws::String & GetUsername() const
Instance & WithLocation(const ResourceLocation &value)
Instance & WithNetworking(InstanceNetworking &&value)
Instance & WithSupportCode(const Aws::String &value)
void SetSupportCode(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
Instance & WithPrivateIpAddress(Aws::String &&value)
Instance & WithSshKeyName(const Aws::String &value)
Instance & WithBlueprintName(const char *value)
Instance & WithBundleId(const char *value)
void SetPrivateIpAddress(Aws::String &&value)
void SetBlueprintId(const Aws::String &value)
bool ResourceTypeHasBeenSet() const
bool PublicIpAddressHasBeenSet() const
bool AddOnsHasBeenSet() const
void SetArn(const Aws::String &value)
void SetArn(Aws::String &&value)
bool MetadataOptionsHasBeenSet() const
Instance & WithPublicIpAddress(Aws::String &&value)
Instance & AddTags(const Tag &value)
Instance & WithBlueprintId(Aws::String &&value)
void SetName(Aws::String &&value)
Instance & WithPrivateIpAddress(const char *value)
Instance & AddAddOns(AddOn &&value)
Instance & WithHardware(const InstanceHardware &value)
const Aws::Vector< AddOn > & GetAddOns() const
void SetSupportCode(const Aws::String &value)
bool NetworkingHasBeenSet() const
void SetState(InstanceState &&value)
bool BundleIdHasBeenSet() const
void SetResourceType(const ResourceType &value)
Instance & AddTags(Tag &&value)
Instance & WithUsername(const Aws::String &value)
bool CreatedAtHasBeenSet() const
bool SshKeyNameHasBeenSet() const
bool BlueprintIdHasBeenSet() const
Instance & WithSshKeyName(const char *value)
Instance & WithPublicIpAddress(const Aws::String &value)
Instance & WithMetadataOptions(InstanceMetadataOptions &&value)
bool LocationHasBeenSet() const
Instance & WithMetadataOptions(const InstanceMetadataOptions &value)
void SetState(const InstanceState &value)
void SetPublicIpAddress(const char *value)
Instance & WithName(const Aws::String &value)
Instance & WithArn(const char *value)
const Aws::String & GetPrivateIpAddress() const
void SetSshKeyName(const char *value)
Instance & WithSupportCode(Aws::String &&value)
bool PrivateIpAddressHasBeenSet() const
Instance & WithState(const InstanceState &value)
void SetIsStaticIp(bool value)
Instance & WithBlueprintName(const Aws::String &value)
const Aws::String & GetBlueprintName() const
const Aws::String & GetSupportCode() const
void SetResourceType(ResourceType &&value)
Instance & WithAddOns(Aws::Vector< AddOn > &&value)
void SetPublicIpAddress(Aws::String &&value)
AWS_LIGHTSAIL_API Instance()
Instance & WithUsername(Aws::String &&value)
Instance & WithBlueprintId(const char *value)
Instance & WithNetworking(const InstanceNetworking &value)
void SetBundleId(const Aws::String &value)
void SetHardware(const InstanceHardware &value)
Instance & WithResourceType(ResourceType &&value)
const Aws::String & GetArn() const
Instance & WithName(Aws::String &&value)
bool GetIsStaticIp() const
void SetHardware(InstanceHardware &&value)
Instance & WithBundleId(Aws::String &&value)
Instance & WithAddOns(const Aws::Vector< AddOn > &value)
const Aws::Vector< Tag > & GetTags() const
void SetName(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetBlueprintId(const char *value)
AWS_LIGHTSAIL_API Instance & operator=(Aws::Utils::Json::JsonView jsonValue)
bool StateHasBeenSet() const
void SetUsername(const char *value)
Instance & WithPublicIpAddress(const char *value)
const Aws::String & GetSshKeyName() const
bool HardwareHasBeenSet() const
Instance & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetSshKeyName(Aws::String &&value)
Instance & WithIpv6Addresses(const Aws::Vector< Aws::String > &value)
const InstanceNetworking & GetNetworking() const
Instance & WithName(const char *value)
void SetPrivateIpAddress(const Aws::String &value)
void SetLocation(ResourceLocation &&value)
Instance & WithLocation(ResourceLocation &&value)
void SetSupportCode(Aws::String &&value)
void SetIpAddressType(IpAddressType &&value)
Instance & WithBlueprintId(const Aws::String &value)
void SetMetadataOptions(InstanceMetadataOptions &&value)
const InstanceState & GetState() const
void SetUsername(const Aws::String &value)
Instance & WithIpv6Addresses(Aws::Vector< Aws::String > &&value)
void SetBlueprintId(Aws::String &&value)
void SetNetworking(const InstanceNetworking &value)
void SetBlueprintName(const Aws::String &value)
void SetUsername(Aws::String &&value)
void SetArn(const char *value)
void SetAddOns(const Aws::Vector< AddOn > &value)
void SetBundleId(Aws::String &&value)
Instance & WithHardware(InstanceHardware &&value)
bool IsStaticIpHasBeenSet() const
const Aws::Vector< Aws::String > & GetIpv6Addresses() const
Instance & WithCreatedAt(Aws::Utils::DateTime &&value)
Instance & WithUsername(const char *value)
void SetPrivateIpAddress(const char *value)
Instance & WithArn(const Aws::String &value)
void SetIpAddressType(const IpAddressType &value)
Instance & AddAddOns(const AddOn &value)
Instance & WithIpAddressType(const IpAddressType &value)
void SetLocation(const ResourceLocation &value)
Instance & WithTags(const Aws::Vector< Tag > &value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
Instance & WithIpAddressType(IpAddressType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue