/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a VPC peering connection.See Also:
AWS
* API Reference
Information about the accepter VPC. CIDR block information is only returned * when describing an active VPC peering connection.
*/ inline const VpcPeeringConnectionVpcInfo& GetAccepterVpcInfo() const{ return m_accepterVpcInfo; } /** *Information about the accepter VPC. CIDR block information is only returned * when describing an active VPC peering connection.
*/ inline bool AccepterVpcInfoHasBeenSet() const { return m_accepterVpcInfoHasBeenSet; } /** *Information about the accepter VPC. CIDR block information is only returned * when describing an active VPC peering connection.
*/ inline void SetAccepterVpcInfo(const VpcPeeringConnectionVpcInfo& value) { m_accepterVpcInfoHasBeenSet = true; m_accepterVpcInfo = value; } /** *Information about the accepter VPC. CIDR block information is only returned * when describing an active VPC peering connection.
*/ inline void SetAccepterVpcInfo(VpcPeeringConnectionVpcInfo&& value) { m_accepterVpcInfoHasBeenSet = true; m_accepterVpcInfo = std::move(value); } /** *Information about the accepter VPC. CIDR block information is only returned * when describing an active VPC peering connection.
*/ inline VpcPeeringConnection& WithAccepterVpcInfo(const VpcPeeringConnectionVpcInfo& value) { SetAccepterVpcInfo(value); return *this;} /** *Information about the accepter VPC. CIDR block information is only returned * when describing an active VPC peering connection.
*/ inline VpcPeeringConnection& WithAccepterVpcInfo(VpcPeeringConnectionVpcInfo&& value) { SetAccepterVpcInfo(std::move(value)); return *this;} /** *The time that an unaccepted VPC peering connection will expire.
*/ inline const Aws::Utils::DateTime& GetExpirationTime() const{ return m_expirationTime; } /** *The time that an unaccepted VPC peering connection will expire.
*/ inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; } /** *The time that an unaccepted VPC peering connection will expire.
*/ inline void SetExpirationTime(const Aws::Utils::DateTime& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = value; } /** *The time that an unaccepted VPC peering connection will expire.
*/ inline void SetExpirationTime(Aws::Utils::DateTime&& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = std::move(value); } /** *The time that an unaccepted VPC peering connection will expire.
*/ inline VpcPeeringConnection& WithExpirationTime(const Aws::Utils::DateTime& value) { SetExpirationTime(value); return *this;} /** *The time that an unaccepted VPC peering connection will expire.
*/ inline VpcPeeringConnection& WithExpirationTime(Aws::Utils::DateTime&& value) { SetExpirationTime(std::move(value)); return *this;} /** *Information about the requester VPC. CIDR block information is only returned * when describing an active VPC peering connection.
*/ inline const VpcPeeringConnectionVpcInfo& GetRequesterVpcInfo() const{ return m_requesterVpcInfo; } /** *Information about the requester VPC. CIDR block information is only returned * when describing an active VPC peering connection.
*/ inline bool RequesterVpcInfoHasBeenSet() const { return m_requesterVpcInfoHasBeenSet; } /** *Information about the requester VPC. CIDR block information is only returned * when describing an active VPC peering connection.
*/ inline void SetRequesterVpcInfo(const VpcPeeringConnectionVpcInfo& value) { m_requesterVpcInfoHasBeenSet = true; m_requesterVpcInfo = value; } /** *Information about the requester VPC. CIDR block information is only returned * when describing an active VPC peering connection.
*/ inline void SetRequesterVpcInfo(VpcPeeringConnectionVpcInfo&& value) { m_requesterVpcInfoHasBeenSet = true; m_requesterVpcInfo = std::move(value); } /** *Information about the requester VPC. CIDR block information is only returned * when describing an active VPC peering connection.
*/ inline VpcPeeringConnection& WithRequesterVpcInfo(const VpcPeeringConnectionVpcInfo& value) { SetRequesterVpcInfo(value); return *this;} /** *Information about the requester VPC. CIDR block information is only returned * when describing an active VPC peering connection.
*/ inline VpcPeeringConnection& WithRequesterVpcInfo(VpcPeeringConnectionVpcInfo&& value) { SetRequesterVpcInfo(std::move(value)); return *this;} /** *The status of the VPC peering connection.
*/ inline const VpcPeeringConnectionStateReason& GetStatus() const{ return m_status; } /** *The status of the VPC peering connection.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the VPC peering connection.
*/ inline void SetStatus(const VpcPeeringConnectionStateReason& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the VPC peering connection.
*/ inline void SetStatus(VpcPeeringConnectionStateReason&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the VPC peering connection.
*/ inline VpcPeeringConnection& WithStatus(const VpcPeeringConnectionStateReason& value) { SetStatus(value); return *this;} /** *The status of the VPC peering connection.
*/ inline VpcPeeringConnection& WithStatus(VpcPeeringConnectionStateReason&& value) { SetStatus(std::move(value)); return *this;} /** *Any tags assigned to the resource.
*/ inline const Aws::VectorAny tags assigned to the resource.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *Any tags assigned to the resource.
*/ inline void SetTags(const Aws::VectorAny tags assigned to the resource.
*/ inline void SetTags(Aws::VectorAny tags assigned to the resource.
*/ inline VpcPeeringConnection& WithTags(const Aws::VectorAny tags assigned to the resource.
*/ inline VpcPeeringConnection& WithTags(Aws::VectorAny tags assigned to the resource.
*/ inline VpcPeeringConnection& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *Any tags assigned to the resource.
*/ inline VpcPeeringConnection& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *The ID of the VPC peering connection.
*/ inline const Aws::String& GetVpcPeeringConnectionId() const{ return m_vpcPeeringConnectionId; } /** *The ID of the VPC peering connection.
*/ inline bool VpcPeeringConnectionIdHasBeenSet() const { return m_vpcPeeringConnectionIdHasBeenSet; } /** *The ID of the VPC peering connection.
*/ inline void SetVpcPeeringConnectionId(const Aws::String& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = value; } /** *The ID of the VPC peering connection.
*/ inline void SetVpcPeeringConnectionId(Aws::String&& value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId = std::move(value); } /** *The ID of the VPC peering connection.
*/ inline void SetVpcPeeringConnectionId(const char* value) { m_vpcPeeringConnectionIdHasBeenSet = true; m_vpcPeeringConnectionId.assign(value); } /** *The ID of the VPC peering connection.
*/ inline VpcPeeringConnection& WithVpcPeeringConnectionId(const Aws::String& value) { SetVpcPeeringConnectionId(value); return *this;} /** *The ID of the VPC peering connection.
*/ inline VpcPeeringConnection& WithVpcPeeringConnectionId(Aws::String&& value) { SetVpcPeeringConnectionId(std::move(value)); return *this;} /** *The ID of the VPC peering connection.
*/ inline VpcPeeringConnection& WithVpcPeeringConnectionId(const char* value) { SetVpcPeeringConnectionId(value); return *this;} private: VpcPeeringConnectionVpcInfo m_accepterVpcInfo; bool m_accepterVpcInfoHasBeenSet = false; Aws::Utils::DateTime m_expirationTime; bool m_expirationTimeHasBeenSet = false; VpcPeeringConnectionVpcInfo m_requesterVpcInfo; bool m_requesterVpcInfoHasBeenSet = false; VpcPeeringConnectionStateReason m_status; bool m_statusHasBeenSet = false; Aws::Vector