This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-ec2/include/aws/ec2/model/AssignIpv6AddressesRequest.h

179 lines
7.1 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ec2/EC2_EXPORTS.h>
#include <aws/ec2/EC2Request.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace EC2
{
namespace Model
{
/**
*/
class AWS_EC2_API AssignIpv6AddressesRequest : public EC2Request
{
public:
AssignIpv6AddressesRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "AssignIpv6Addresses"; }
Aws::String SerializePayload() const override;
protected:
void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
public:
/**
* <p>The number of IPv6 addresses to assign to the network interface. Amazon EC2
* automatically selects the IPv6 addresses from the subnet range. You can't use
* this option if specifying specific IPv6 addresses.</p>
*/
inline int GetIpv6AddressCount() const{ return m_ipv6AddressCount; }
/**
* <p>The number of IPv6 addresses to assign to the network interface. Amazon EC2
* automatically selects the IPv6 addresses from the subnet range. You can't use
* this option if specifying specific IPv6 addresses.</p>
*/
inline bool Ipv6AddressCountHasBeenSet() const { return m_ipv6AddressCountHasBeenSet; }
/**
* <p>The number of IPv6 addresses to assign to the network interface. Amazon EC2
* automatically selects the IPv6 addresses from the subnet range. You can't use
* this option if specifying specific IPv6 addresses.</p>
*/
inline void SetIpv6AddressCount(int value) { m_ipv6AddressCountHasBeenSet = true; m_ipv6AddressCount = value; }
/**
* <p>The number of IPv6 addresses to assign to the network interface. Amazon EC2
* automatically selects the IPv6 addresses from the subnet range. You can't use
* this option if specifying specific IPv6 addresses.</p>
*/
inline AssignIpv6AddressesRequest& WithIpv6AddressCount(int value) { SetIpv6AddressCount(value); return *this;}
/**
* <p>One or more specific IPv6 addresses to be assigned to the network interface.
* You can't use this option if you're specifying a number of IPv6 addresses.</p>
*/
inline const Aws::Vector<Aws::String>& GetIpv6Addresses() const{ return m_ipv6Addresses; }
/**
* <p>One or more specific IPv6 addresses to be assigned to the network interface.
* You can't use this option if you're specifying a number of IPv6 addresses.</p>
*/
inline bool Ipv6AddressesHasBeenSet() const { return m_ipv6AddressesHasBeenSet; }
/**
* <p>One or more specific IPv6 addresses to be assigned to the network interface.
* You can't use this option if you're specifying a number of IPv6 addresses.</p>
*/
inline void SetIpv6Addresses(const Aws::Vector<Aws::String>& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = value; }
/**
* <p>One or more specific IPv6 addresses to be assigned to the network interface.
* You can't use this option if you're specifying a number of IPv6 addresses.</p>
*/
inline void SetIpv6Addresses(Aws::Vector<Aws::String>&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses = std::move(value); }
/**
* <p>One or more specific IPv6 addresses to be assigned to the network interface.
* You can't use this option if you're specifying a number of IPv6 addresses.</p>
*/
inline AssignIpv6AddressesRequest& WithIpv6Addresses(const Aws::Vector<Aws::String>& value) { SetIpv6Addresses(value); return *this;}
/**
* <p>One or more specific IPv6 addresses to be assigned to the network interface.
* You can't use this option if you're specifying a number of IPv6 addresses.</p>
*/
inline AssignIpv6AddressesRequest& WithIpv6Addresses(Aws::Vector<Aws::String>&& value) { SetIpv6Addresses(std::move(value)); return *this;}
/**
* <p>One or more specific IPv6 addresses to be assigned to the network interface.
* You can't use this option if you're specifying a number of IPv6 addresses.</p>
*/
inline AssignIpv6AddressesRequest& AddIpv6Addresses(const Aws::String& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; }
/**
* <p>One or more specific IPv6 addresses to be assigned to the network interface.
* You can't use this option if you're specifying a number of IPv6 addresses.</p>
*/
inline AssignIpv6AddressesRequest& AddIpv6Addresses(Aws::String&& value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(std::move(value)); return *this; }
/**
* <p>One or more specific IPv6 addresses to be assigned to the network interface.
* You can't use this option if you're specifying a number of IPv6 addresses.</p>
*/
inline AssignIpv6AddressesRequest& AddIpv6Addresses(const char* value) { m_ipv6AddressesHasBeenSet = true; m_ipv6Addresses.push_back(value); return *this; }
/**
* <p>The ID of the network interface.</p>
*/
inline const Aws::String& GetNetworkInterfaceId() const{ return m_networkInterfaceId; }
/**
* <p>The ID of the network interface.</p>
*/
inline bool NetworkInterfaceIdHasBeenSet() const { return m_networkInterfaceIdHasBeenSet; }
/**
* <p>The ID of the network interface.</p>
*/
inline void SetNetworkInterfaceId(const Aws::String& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = value; }
/**
* <p>The ID of the network interface.</p>
*/
inline void SetNetworkInterfaceId(Aws::String&& value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId = std::move(value); }
/**
* <p>The ID of the network interface.</p>
*/
inline void SetNetworkInterfaceId(const char* value) { m_networkInterfaceIdHasBeenSet = true; m_networkInterfaceId.assign(value); }
/**
* <p>The ID of the network interface.</p>
*/
inline AssignIpv6AddressesRequest& WithNetworkInterfaceId(const Aws::String& value) { SetNetworkInterfaceId(value); return *this;}
/**
* <p>The ID of the network interface.</p>
*/
inline AssignIpv6AddressesRequest& WithNetworkInterfaceId(Aws::String&& value) { SetNetworkInterfaceId(std::move(value)); return *this;}
/**
* <p>The ID of the network interface.</p>
*/
inline AssignIpv6AddressesRequest& WithNetworkInterfaceId(const char* value) { SetNetworkInterfaceId(value); return *this;}
private:
int m_ipv6AddressCount;
bool m_ipv6AddressCountHasBeenSet;
Aws::Vector<Aws::String> m_ipv6Addresses;
bool m_ipv6AddressesHasBeenSet;
Aws::String m_networkInterfaceId;
bool m_networkInterfaceIdHasBeenSet;
};
} // namespace Model
} // namespace EC2
} // namespace Aws