/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Kafka { namespace Model { class CreateVpcConnectionResult { public: AWS_KAFKA_API CreateVpcConnectionResult(); AWS_KAFKA_API CreateVpcConnectionResult(const Aws::AmazonWebServiceResult& result); AWS_KAFKA_API CreateVpcConnectionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The VPC connection ARN.

*/ inline const Aws::String& GetVpcConnectionArn() const{ return m_vpcConnectionArn; } /** *

The VPC connection ARN.

*/ inline void SetVpcConnectionArn(const Aws::String& value) { m_vpcConnectionArn = value; } /** *

The VPC connection ARN.

*/ inline void SetVpcConnectionArn(Aws::String&& value) { m_vpcConnectionArn = std::move(value); } /** *

The VPC connection ARN.

*/ inline void SetVpcConnectionArn(const char* value) { m_vpcConnectionArn.assign(value); } /** *

The VPC connection ARN.

*/ inline CreateVpcConnectionResult& WithVpcConnectionArn(const Aws::String& value) { SetVpcConnectionArn(value); return *this;} /** *

The VPC connection ARN.

*/ inline CreateVpcConnectionResult& WithVpcConnectionArn(Aws::String&& value) { SetVpcConnectionArn(std::move(value)); return *this;} /** *

The VPC connection ARN.

*/ inline CreateVpcConnectionResult& WithVpcConnectionArn(const char* value) { SetVpcConnectionArn(value); return *this;} /** *

The State of Vpc Connection.

*/ inline const VpcConnectionState& GetState() const{ return m_state; } /** *

The State of Vpc Connection.

*/ inline void SetState(const VpcConnectionState& value) { m_state = value; } /** *

The State of Vpc Connection.

*/ inline void SetState(VpcConnectionState&& value) { m_state = std::move(value); } /** *

The State of Vpc Connection.

*/ inline CreateVpcConnectionResult& WithState(const VpcConnectionState& value) { SetState(value); return *this;} /** *

The State of Vpc Connection.

*/ inline CreateVpcConnectionResult& WithState(VpcConnectionState&& value) { SetState(std::move(value)); return *this;} /** *

The authentication type of VPC connection.

*/ inline const Aws::String& GetAuthentication() const{ return m_authentication; } /** *

The authentication type of VPC connection.

*/ inline void SetAuthentication(const Aws::String& value) { m_authentication = value; } /** *

The authentication type of VPC connection.

*/ inline void SetAuthentication(Aws::String&& value) { m_authentication = std::move(value); } /** *

The authentication type of VPC connection.

*/ inline void SetAuthentication(const char* value) { m_authentication.assign(value); } /** *

The authentication type of VPC connection.

*/ inline CreateVpcConnectionResult& WithAuthentication(const Aws::String& value) { SetAuthentication(value); return *this;} /** *

The authentication type of VPC connection.

*/ inline CreateVpcConnectionResult& WithAuthentication(Aws::String&& value) { SetAuthentication(std::move(value)); return *this;} /** *

The authentication type of VPC connection.

*/ inline CreateVpcConnectionResult& WithAuthentication(const char* value) { SetAuthentication(value); return *this;} /** *

The VPC ID of the VPC connection.

*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *

The VPC ID of the VPC connection.

*/ inline void SetVpcId(const Aws::String& value) { m_vpcId = value; } /** *

The VPC ID of the VPC connection.

*/ inline void SetVpcId(Aws::String&& value) { m_vpcId = std::move(value); } /** *

The VPC ID of the VPC connection.

*/ inline void SetVpcId(const char* value) { m_vpcId.assign(value); } /** *

The VPC ID of the VPC connection.

*/ inline CreateVpcConnectionResult& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *

The VPC ID of the VPC connection.

*/ inline CreateVpcConnectionResult& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *

The VPC ID of the VPC connection.

*/ inline CreateVpcConnectionResult& WithVpcId(const char* value) { SetVpcId(value); return *this;} /** *

The list of client subnets.

*/ inline const Aws::Vector& GetClientSubnets() const{ return m_clientSubnets; } /** *

The list of client subnets.

*/ inline void SetClientSubnets(const Aws::Vector& value) { m_clientSubnets = value; } /** *

The list of client subnets.

*/ inline void SetClientSubnets(Aws::Vector&& value) { m_clientSubnets = std::move(value); } /** *

The list of client subnets.

*/ inline CreateVpcConnectionResult& WithClientSubnets(const Aws::Vector& value) { SetClientSubnets(value); return *this;} /** *

The list of client subnets.

*/ inline CreateVpcConnectionResult& WithClientSubnets(Aws::Vector&& value) { SetClientSubnets(std::move(value)); return *this;} /** *

The list of client subnets.

*/ inline CreateVpcConnectionResult& AddClientSubnets(const Aws::String& value) { m_clientSubnets.push_back(value); return *this; } /** *

The list of client subnets.

*/ inline CreateVpcConnectionResult& AddClientSubnets(Aws::String&& value) { m_clientSubnets.push_back(std::move(value)); return *this; } /** *

The list of client subnets.

*/ inline CreateVpcConnectionResult& AddClientSubnets(const char* value) { m_clientSubnets.push_back(value); return *this; } /** *

The list of security groups.

*/ inline const Aws::Vector& GetSecurityGroups() const{ return m_securityGroups; } /** *

The list of security groups.

*/ inline void SetSecurityGroups(const Aws::Vector& value) { m_securityGroups = value; } /** *

The list of security groups.

*/ inline void SetSecurityGroups(Aws::Vector&& value) { m_securityGroups = std::move(value); } /** *

The list of security groups.

*/ inline CreateVpcConnectionResult& WithSecurityGroups(const Aws::Vector& value) { SetSecurityGroups(value); return *this;} /** *

The list of security groups.

*/ inline CreateVpcConnectionResult& WithSecurityGroups(Aws::Vector&& value) { SetSecurityGroups(std::move(value)); return *this;} /** *

The list of security groups.

*/ inline CreateVpcConnectionResult& AddSecurityGroups(const Aws::String& value) { m_securityGroups.push_back(value); return *this; } /** *

The list of security groups.

*/ inline CreateVpcConnectionResult& AddSecurityGroups(Aws::String&& value) { m_securityGroups.push_back(std::move(value)); return *this; } /** *

The list of security groups.

*/ inline CreateVpcConnectionResult& AddSecurityGroups(const char* value) { m_securityGroups.push_back(value); return *this; } /** *

The creation time of VPC connection.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

The creation time of VPC connection.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; } /** *

The creation time of VPC connection.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); } /** *

The creation time of VPC connection.

*/ inline CreateVpcConnectionResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

The creation time of VPC connection.

*/ inline CreateVpcConnectionResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

A map of tags for the VPC connection.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

A map of tags for the VPC connection.

*/ inline void SetTags(const Aws::Map& value) { m_tags = value; } /** *

A map of tags for the VPC connection.

*/ inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); } /** *

A map of tags for the VPC connection.

*/ inline CreateVpcConnectionResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

A map of tags for the VPC connection.

*/ inline CreateVpcConnectionResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

A map of tags for the VPC connection.

*/ inline CreateVpcConnectionResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; } /** *

A map of tags for the VPC connection.

*/ inline CreateVpcConnectionResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; } /** *

A map of tags for the VPC connection.

*/ inline CreateVpcConnectionResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

A map of tags for the VPC connection.

*/ inline CreateVpcConnectionResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

A map of tags for the VPC connection.

*/ inline CreateVpcConnectionResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; } /** *

A map of tags for the VPC connection.

*/ inline CreateVpcConnectionResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; } /** *

A map of tags for the VPC connection.

*/ inline CreateVpcConnectionResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateVpcConnectionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateVpcConnectionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateVpcConnectionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_vpcConnectionArn; VpcConnectionState m_state; Aws::String m_authentication; Aws::String m_vpcId; Aws::Vector m_clientSubnets; Aws::Vector m_securityGroups; Aws::Utils::DateTime m_creationTime; Aws::Map m_tags; Aws::String m_requestId; }; } // namespace Model } // namespace Kafka } // namespace Aws