/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Lightsail { namespace Model { /** *

Describes a static IP.

See Also:

AWS * API Reference

*/ class StaticIp { public: AWS_LIGHTSAIL_API StaticIp(); AWS_LIGHTSAIL_API StaticIp(Aws::Utils::Json::JsonView jsonValue); AWS_LIGHTSAIL_API StaticIp& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the static IP (e.g., StaticIP-Ohio-EXAMPLE).

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the static IP (e.g., StaticIP-Ohio-EXAMPLE).

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the static IP (e.g., StaticIP-Ohio-EXAMPLE).

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the static IP (e.g., StaticIP-Ohio-EXAMPLE).

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the static IP (e.g., StaticIP-Ohio-EXAMPLE).

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the static IP (e.g., StaticIP-Ohio-EXAMPLE).

*/ inline StaticIp& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the static IP (e.g., StaticIP-Ohio-EXAMPLE).

*/ inline StaticIp& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the static IP (e.g., StaticIP-Ohio-EXAMPLE).

*/ inline StaticIp& WithName(const char* value) { SetName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the static IP (e.g., * arn:aws:lightsail:us-east-2:123456789101:StaticIp/9cbb4a9e-f8e3-4dfe-b57e-12345EXAMPLE).

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the static IP (e.g., * arn:aws:lightsail:us-east-2:123456789101:StaticIp/9cbb4a9e-f8e3-4dfe-b57e-12345EXAMPLE).

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the static IP (e.g., * arn:aws:lightsail:us-east-2:123456789101:StaticIp/9cbb4a9e-f8e3-4dfe-b57e-12345EXAMPLE).

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the static IP (e.g., * arn:aws:lightsail:us-east-2:123456789101:StaticIp/9cbb4a9e-f8e3-4dfe-b57e-12345EXAMPLE).

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the static IP (e.g., * arn:aws:lightsail:us-east-2:123456789101:StaticIp/9cbb4a9e-f8e3-4dfe-b57e-12345EXAMPLE).

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the static IP (e.g., * arn:aws:lightsail:us-east-2:123456789101:StaticIp/9cbb4a9e-f8e3-4dfe-b57e-12345EXAMPLE).

*/ inline StaticIp& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the static IP (e.g., * arn:aws:lightsail:us-east-2:123456789101:StaticIp/9cbb4a9e-f8e3-4dfe-b57e-12345EXAMPLE).

*/ inline StaticIp& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the static IP (e.g., * arn:aws:lightsail:us-east-2:123456789101:StaticIp/9cbb4a9e-f8e3-4dfe-b57e-12345EXAMPLE).

*/ inline StaticIp& WithArn(const char* value) { SetArn(value); return *this;} /** *

The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.

*/ inline const Aws::String& GetSupportCode() const{ return m_supportCode; } /** *

The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.

*/ inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; } /** *

The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.

*/ inline void SetSupportCode(const Aws::String& value) { m_supportCodeHasBeenSet = true; m_supportCode = value; } /** *

The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.

*/ inline void SetSupportCode(Aws::String&& value) { m_supportCodeHasBeenSet = true; m_supportCode = std::move(value); } /** *

The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.

*/ inline void SetSupportCode(const char* value) { m_supportCodeHasBeenSet = true; m_supportCode.assign(value); } /** *

The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.

*/ inline StaticIp& WithSupportCode(const Aws::String& value) { SetSupportCode(value); return *this;} /** *

The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.

*/ inline StaticIp& WithSupportCode(Aws::String&& value) { SetSupportCode(std::move(value)); return *this;} /** *

The support code. Include this code in your email to support when you have * questions about an instance or another resource in Lightsail. This code enables * our support team to look up your Lightsail information more easily.

*/ inline StaticIp& WithSupportCode(const char* value) { SetSupportCode(value); return *this;} /** *

The timestamp when the static IP was created (e.g., * 1479735304.222).

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The timestamp when the static IP was created (e.g., * 1479735304.222).

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The timestamp when the static IP was created (e.g., * 1479735304.222).

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The timestamp when the static IP was created (e.g., * 1479735304.222).

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The timestamp when the static IP was created (e.g., * 1479735304.222).

*/ inline StaticIp& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The timestamp when the static IP was created (e.g., * 1479735304.222).

*/ inline StaticIp& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The region and Availability Zone where the static IP was created.

*/ inline const ResourceLocation& GetLocation() const{ return m_location; } /** *

The region and Availability Zone where the static IP was created.

*/ inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; } /** *

The region and Availability Zone where the static IP was created.

*/ inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; } /** *

The region and Availability Zone where the static IP was created.

*/ inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); } /** *

The region and Availability Zone where the static IP was created.

*/ inline StaticIp& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;} /** *

The region and Availability Zone where the static IP was created.

*/ inline StaticIp& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;} /** *

The resource type (usually StaticIp).

*/ inline const ResourceType& GetResourceType() const{ return m_resourceType; } /** *

The resource type (usually StaticIp).

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The resource type (usually StaticIp).

*/ inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The resource type (usually StaticIp).

*/ inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The resource type (usually StaticIp).

*/ inline StaticIp& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;} /** *

The resource type (usually StaticIp).

*/ inline StaticIp& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *

The static IP address.

*/ inline const Aws::String& GetIpAddress() const{ return m_ipAddress; } /** *

The static IP address.

*/ inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; } /** *

The static IP address.

*/ inline void SetIpAddress(const Aws::String& value) { m_ipAddressHasBeenSet = true; m_ipAddress = value; } /** *

The static IP address.

*/ inline void SetIpAddress(Aws::String&& value) { m_ipAddressHasBeenSet = true; m_ipAddress = std::move(value); } /** *

The static IP address.

*/ inline void SetIpAddress(const char* value) { m_ipAddressHasBeenSet = true; m_ipAddress.assign(value); } /** *

The static IP address.

*/ inline StaticIp& WithIpAddress(const Aws::String& value) { SetIpAddress(value); return *this;} /** *

The static IP address.

*/ inline StaticIp& WithIpAddress(Aws::String&& value) { SetIpAddress(std::move(value)); return *this;} /** *

The static IP address.

*/ inline StaticIp& WithIpAddress(const char* value) { SetIpAddress(value); return *this;} /** *

The instance where the static IP is attached (e.g., * Amazon_Linux-1GB-Ohio-1).

*/ inline const Aws::String& GetAttachedTo() const{ return m_attachedTo; } /** *

The instance where the static IP is attached (e.g., * Amazon_Linux-1GB-Ohio-1).

*/ inline bool AttachedToHasBeenSet() const { return m_attachedToHasBeenSet; } /** *

The instance where the static IP is attached (e.g., * Amazon_Linux-1GB-Ohio-1).

*/ inline void SetAttachedTo(const Aws::String& value) { m_attachedToHasBeenSet = true; m_attachedTo = value; } /** *

The instance where the static IP is attached (e.g., * Amazon_Linux-1GB-Ohio-1).

*/ inline void SetAttachedTo(Aws::String&& value) { m_attachedToHasBeenSet = true; m_attachedTo = std::move(value); } /** *

The instance where the static IP is attached (e.g., * Amazon_Linux-1GB-Ohio-1).

*/ inline void SetAttachedTo(const char* value) { m_attachedToHasBeenSet = true; m_attachedTo.assign(value); } /** *

The instance where the static IP is attached (e.g., * Amazon_Linux-1GB-Ohio-1).

*/ inline StaticIp& WithAttachedTo(const Aws::String& value) { SetAttachedTo(value); return *this;} /** *

The instance where the static IP is attached (e.g., * Amazon_Linux-1GB-Ohio-1).

*/ inline StaticIp& WithAttachedTo(Aws::String&& value) { SetAttachedTo(std::move(value)); return *this;} /** *

The instance where the static IP is attached (e.g., * Amazon_Linux-1GB-Ohio-1).

*/ inline StaticIp& WithAttachedTo(const char* value) { SetAttachedTo(value); return *this;} /** *

A Boolean value indicating whether the static IP is attached.

*/ inline bool GetIsAttached() const{ return m_isAttached; } /** *

A Boolean value indicating whether the static IP is attached.

*/ inline bool IsAttachedHasBeenSet() const { return m_isAttachedHasBeenSet; } /** *

A Boolean value indicating whether the static IP is attached.

*/ inline void SetIsAttached(bool value) { m_isAttachedHasBeenSet = true; m_isAttached = value; } /** *

A Boolean value indicating whether the static IP is attached.

*/ inline StaticIp& WithIsAttached(bool value) { SetIsAttached(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_supportCode; bool m_supportCodeHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; ResourceLocation m_location; bool m_locationHasBeenSet = false; ResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::String m_ipAddress; bool m_ipAddressHasBeenSet = false; Aws::String m_attachedTo; bool m_attachedToHasBeenSet = false; bool m_isAttached; bool m_isAttachedHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws