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

Describes address usage for a customer-owned address pool.

See * Also:

AWS * API Reference

*/ class CoipAddressUsage { public: AWS_EC2_API CoipAddressUsage(); AWS_EC2_API CoipAddressUsage(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API CoipAddressUsage& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The allocation ID of the address.

*/ inline const Aws::String& GetAllocationId() const{ return m_allocationId; } /** *

The allocation ID of the address.

*/ inline bool AllocationIdHasBeenSet() const { return m_allocationIdHasBeenSet; } /** *

The allocation ID of the address.

*/ inline void SetAllocationId(const Aws::String& value) { m_allocationIdHasBeenSet = true; m_allocationId = value; } /** *

The allocation ID of the address.

*/ inline void SetAllocationId(Aws::String&& value) { m_allocationIdHasBeenSet = true; m_allocationId = std::move(value); } /** *

The allocation ID of the address.

*/ inline void SetAllocationId(const char* value) { m_allocationIdHasBeenSet = true; m_allocationId.assign(value); } /** *

The allocation ID of the address.

*/ inline CoipAddressUsage& WithAllocationId(const Aws::String& value) { SetAllocationId(value); return *this;} /** *

The allocation ID of the address.

*/ inline CoipAddressUsage& WithAllocationId(Aws::String&& value) { SetAllocationId(std::move(value)); return *this;} /** *

The allocation ID of the address.

*/ inline CoipAddressUsage& WithAllocationId(const char* value) { SetAllocationId(value); return *this;} /** *

The Amazon Web Services account ID.

*/ inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; } /** *

The Amazon Web Services account ID.

*/ inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; } /** *

The Amazon Web Services account ID.

*/ inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; } /** *

The Amazon Web Services account ID.

*/ inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); } /** *

The Amazon Web Services account ID.

*/ inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); } /** *

The Amazon Web Services account ID.

*/ inline CoipAddressUsage& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;} /** *

The Amazon Web Services account ID.

*/ inline CoipAddressUsage& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;} /** *

The Amazon Web Services account ID.

*/ inline CoipAddressUsage& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;} /** *

The Amazon Web Services service.

*/ inline const Aws::String& GetAwsService() const{ return m_awsService; } /** *

The Amazon Web Services service.

*/ inline bool AwsServiceHasBeenSet() const { return m_awsServiceHasBeenSet; } /** *

The Amazon Web Services service.

*/ inline void SetAwsService(const Aws::String& value) { m_awsServiceHasBeenSet = true; m_awsService = value; } /** *

The Amazon Web Services service.

*/ inline void SetAwsService(Aws::String&& value) { m_awsServiceHasBeenSet = true; m_awsService = std::move(value); } /** *

The Amazon Web Services service.

*/ inline void SetAwsService(const char* value) { m_awsServiceHasBeenSet = true; m_awsService.assign(value); } /** *

The Amazon Web Services service.

*/ inline CoipAddressUsage& WithAwsService(const Aws::String& value) { SetAwsService(value); return *this;} /** *

The Amazon Web Services service.

*/ inline CoipAddressUsage& WithAwsService(Aws::String&& value) { SetAwsService(std::move(value)); return *this;} /** *

The Amazon Web Services service.

*/ inline CoipAddressUsage& WithAwsService(const char* value) { SetAwsService(value); return *this;} /** *

The customer-owned IP address.

*/ inline const Aws::String& GetCoIp() const{ return m_coIp; } /** *

The customer-owned IP address.

*/ inline bool CoIpHasBeenSet() const { return m_coIpHasBeenSet; } /** *

The customer-owned IP address.

*/ inline void SetCoIp(const Aws::String& value) { m_coIpHasBeenSet = true; m_coIp = value; } /** *

The customer-owned IP address.

*/ inline void SetCoIp(Aws::String&& value) { m_coIpHasBeenSet = true; m_coIp = std::move(value); } /** *

The customer-owned IP address.

*/ inline void SetCoIp(const char* value) { m_coIpHasBeenSet = true; m_coIp.assign(value); } /** *

The customer-owned IP address.

*/ inline CoipAddressUsage& WithCoIp(const Aws::String& value) { SetCoIp(value); return *this;} /** *

The customer-owned IP address.

*/ inline CoipAddressUsage& WithCoIp(Aws::String&& value) { SetCoIp(std::move(value)); return *this;} /** *

The customer-owned IP address.

*/ inline CoipAddressUsage& WithCoIp(const char* value) { SetCoIp(value); return *this;} private: Aws::String m_allocationId; bool m_allocationIdHasBeenSet = false; Aws::String m_awsAccountId; bool m_awsAccountIdHasBeenSet = false; Aws::String m_awsService; bool m_awsServiceHasBeenSet = false; Aws::String m_coIp; bool m_coIpHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws