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/CreateVpcPeeringConnectionRequest.h

342 lines
13 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/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/ec2/model/TagSpecification.h>
#include <utility>
namespace Aws
{
namespace EC2
{
namespace Model
{
/**
*/
class AWS_EC2_API CreateVpcPeeringConnectionRequest : public EC2Request
{
public:
CreateVpcPeeringConnectionRequest();
// 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 "CreateVpcPeeringConnection"; }
Aws::String SerializePayload() const override;
protected:
void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
public:
/**
* <p>Checks whether you have the required permissions for the action, without
* actually making the request, and provides an error response. If you have the
* required permissions, the error response is <code>DryRunOperation</code>.
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
*/
inline bool GetDryRun() const{ return m_dryRun; }
/**
* <p>Checks whether you have the required permissions for the action, without
* actually making the request, and provides an error response. If you have the
* required permissions, the error response is <code>DryRunOperation</code>.
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
*/
inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
/**
* <p>Checks whether you have the required permissions for the action, without
* actually making the request, and provides an error response. If you have the
* required permissions, the error response is <code>DryRunOperation</code>.
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
*/
inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
/**
* <p>Checks whether you have the required permissions for the action, without
* actually making the request, and provides an error response. If you have the
* required permissions, the error response is <code>DryRunOperation</code>.
* Otherwise, it is <code>UnauthorizedOperation</code>.</p>
*/
inline CreateVpcPeeringConnectionRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
/**
* <p>The AWS account ID of the owner of the accepter VPC.</p> <p>Default: Your AWS
* account ID</p>
*/
inline const Aws::String& GetPeerOwnerId() const{ return m_peerOwnerId; }
/**
* <p>The AWS account ID of the owner of the accepter VPC.</p> <p>Default: Your AWS
* account ID</p>
*/
inline bool PeerOwnerIdHasBeenSet() const { return m_peerOwnerIdHasBeenSet; }
/**
* <p>The AWS account ID of the owner of the accepter VPC.</p> <p>Default: Your AWS
* account ID</p>
*/
inline void SetPeerOwnerId(const Aws::String& value) { m_peerOwnerIdHasBeenSet = true; m_peerOwnerId = value; }
/**
* <p>The AWS account ID of the owner of the accepter VPC.</p> <p>Default: Your AWS
* account ID</p>
*/
inline void SetPeerOwnerId(Aws::String&& value) { m_peerOwnerIdHasBeenSet = true; m_peerOwnerId = std::move(value); }
/**
* <p>The AWS account ID of the owner of the accepter VPC.</p> <p>Default: Your AWS
* account ID</p>
*/
inline void SetPeerOwnerId(const char* value) { m_peerOwnerIdHasBeenSet = true; m_peerOwnerId.assign(value); }
/**
* <p>The AWS account ID of the owner of the accepter VPC.</p> <p>Default: Your AWS
* account ID</p>
*/
inline CreateVpcPeeringConnectionRequest& WithPeerOwnerId(const Aws::String& value) { SetPeerOwnerId(value); return *this;}
/**
* <p>The AWS account ID of the owner of the accepter VPC.</p> <p>Default: Your AWS
* account ID</p>
*/
inline CreateVpcPeeringConnectionRequest& WithPeerOwnerId(Aws::String&& value) { SetPeerOwnerId(std::move(value)); return *this;}
/**
* <p>The AWS account ID of the owner of the accepter VPC.</p> <p>Default: Your AWS
* account ID</p>
*/
inline CreateVpcPeeringConnectionRequest& WithPeerOwnerId(const char* value) { SetPeerOwnerId(value); return *this;}
/**
* <p>The ID of the VPC with which you are creating the VPC peering connection. You
* must specify this parameter in the request.</p>
*/
inline const Aws::String& GetPeerVpcId() const{ return m_peerVpcId; }
/**
* <p>The ID of the VPC with which you are creating the VPC peering connection. You
* must specify this parameter in the request.</p>
*/
inline bool PeerVpcIdHasBeenSet() const { return m_peerVpcIdHasBeenSet; }
/**
* <p>The ID of the VPC with which you are creating the VPC peering connection. You
* must specify this parameter in the request.</p>
*/
inline void SetPeerVpcId(const Aws::String& value) { m_peerVpcIdHasBeenSet = true; m_peerVpcId = value; }
/**
* <p>The ID of the VPC with which you are creating the VPC peering connection. You
* must specify this parameter in the request.</p>
*/
inline void SetPeerVpcId(Aws::String&& value) { m_peerVpcIdHasBeenSet = true; m_peerVpcId = std::move(value); }
/**
* <p>The ID of the VPC with which you are creating the VPC peering connection. You
* must specify this parameter in the request.</p>
*/
inline void SetPeerVpcId(const char* value) { m_peerVpcIdHasBeenSet = true; m_peerVpcId.assign(value); }
/**
* <p>The ID of the VPC with which you are creating the VPC peering connection. You
* must specify this parameter in the request.</p>
*/
inline CreateVpcPeeringConnectionRequest& WithPeerVpcId(const Aws::String& value) { SetPeerVpcId(value); return *this;}
/**
* <p>The ID of the VPC with which you are creating the VPC peering connection. You
* must specify this parameter in the request.</p>
*/
inline CreateVpcPeeringConnectionRequest& WithPeerVpcId(Aws::String&& value) { SetPeerVpcId(std::move(value)); return *this;}
/**
* <p>The ID of the VPC with which you are creating the VPC peering connection. You
* must specify this parameter in the request.</p>
*/
inline CreateVpcPeeringConnectionRequest& WithPeerVpcId(const char* value) { SetPeerVpcId(value); return *this;}
/**
* <p>The ID of the requester VPC. You must specify this parameter in the
* request.</p>
*/
inline const Aws::String& GetVpcId() const{ return m_vpcId; }
/**
* <p>The ID of the requester VPC. You must specify this parameter in the
* request.</p>
*/
inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
/**
* <p>The ID of the requester VPC. You must specify this parameter in the
* request.</p>
*/
inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; }
/**
* <p>The ID of the requester VPC. You must specify this parameter in the
* request.</p>
*/
inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); }
/**
* <p>The ID of the requester VPC. You must specify this parameter in the
* request.</p>
*/
inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); }
/**
* <p>The ID of the requester VPC. You must specify this parameter in the
* request.</p>
*/
inline CreateVpcPeeringConnectionRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;}
/**
* <p>The ID of the requester VPC. You must specify this parameter in the
* request.</p>
*/
inline CreateVpcPeeringConnectionRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;}
/**
* <p>The ID of the requester VPC. You must specify this parameter in the
* request.</p>
*/
inline CreateVpcPeeringConnectionRequest& WithVpcId(const char* value) { SetVpcId(value); return *this;}
/**
* <p>The Region code for the accepter VPC, if the accepter VPC is located in a
* Region other than the Region in which you make the request.</p> <p>Default: The
* Region in which you make the request.</p>
*/
inline const Aws::String& GetPeerRegion() const{ return m_peerRegion; }
/**
* <p>The Region code for the accepter VPC, if the accepter VPC is located in a
* Region other than the Region in which you make the request.</p> <p>Default: The
* Region in which you make the request.</p>
*/
inline bool PeerRegionHasBeenSet() const { return m_peerRegionHasBeenSet; }
/**
* <p>The Region code for the accepter VPC, if the accepter VPC is located in a
* Region other than the Region in which you make the request.</p> <p>Default: The
* Region in which you make the request.</p>
*/
inline void SetPeerRegion(const Aws::String& value) { m_peerRegionHasBeenSet = true; m_peerRegion = value; }
/**
* <p>The Region code for the accepter VPC, if the accepter VPC is located in a
* Region other than the Region in which you make the request.</p> <p>Default: The
* Region in which you make the request.</p>
*/
inline void SetPeerRegion(Aws::String&& value) { m_peerRegionHasBeenSet = true; m_peerRegion = std::move(value); }
/**
* <p>The Region code for the accepter VPC, if the accepter VPC is located in a
* Region other than the Region in which you make the request.</p> <p>Default: The
* Region in which you make the request.</p>
*/
inline void SetPeerRegion(const char* value) { m_peerRegionHasBeenSet = true; m_peerRegion.assign(value); }
/**
* <p>The Region code for the accepter VPC, if the accepter VPC is located in a
* Region other than the Region in which you make the request.</p> <p>Default: The
* Region in which you make the request.</p>
*/
inline CreateVpcPeeringConnectionRequest& WithPeerRegion(const Aws::String& value) { SetPeerRegion(value); return *this;}
/**
* <p>The Region code for the accepter VPC, if the accepter VPC is located in a
* Region other than the Region in which you make the request.</p> <p>Default: The
* Region in which you make the request.</p>
*/
inline CreateVpcPeeringConnectionRequest& WithPeerRegion(Aws::String&& value) { SetPeerRegion(std::move(value)); return *this;}
/**
* <p>The Region code for the accepter VPC, if the accepter VPC is located in a
* Region other than the Region in which you make the request.</p> <p>Default: The
* Region in which you make the request.</p>
*/
inline CreateVpcPeeringConnectionRequest& WithPeerRegion(const char* value) { SetPeerRegion(value); return *this;}
/**
* <p>The tags to assign to the peering connection.</p>
*/
inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
/**
* <p>The tags to assign to the peering connection.</p>
*/
inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
/**
* <p>The tags to assign to the peering connection.</p>
*/
inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
/**
* <p>The tags to assign to the peering connection.</p>
*/
inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
/**
* <p>The tags to assign to the peering connection.</p>
*/
inline CreateVpcPeeringConnectionRequest& WithTagSpecifications(const Aws::Vector<TagSpecification>& value) { SetTagSpecifications(value); return *this;}
/**
* <p>The tags to assign to the peering connection.</p>
*/
inline CreateVpcPeeringConnectionRequest& WithTagSpecifications(Aws::Vector<TagSpecification>&& value) { SetTagSpecifications(std::move(value)); return *this;}
/**
* <p>The tags to assign to the peering connection.</p>
*/
inline CreateVpcPeeringConnectionRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
/**
* <p>The tags to assign to the peering connection.</p>
*/
inline CreateVpcPeeringConnectionRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
private:
bool m_dryRun;
bool m_dryRunHasBeenSet;
Aws::String m_peerOwnerId;
bool m_peerOwnerIdHasBeenSet;
Aws::String m_peerVpcId;
bool m_peerVpcIdHasBeenSet;
Aws::String m_vpcId;
bool m_vpcIdHasBeenSet;
Aws::String m_peerRegion;
bool m_peerRegionHasBeenSet;
Aws::Vector<TagSpecification> m_tagSpecifications;
bool m_tagSpecificationsHasBeenSet;
};
} // namespace Model
} // namespace EC2
} // namespace Aws