/** * 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 { namespace VPCLattice { namespace Model { /** */ class CreateServiceNetworkVpcAssociationRequest : public VPCLatticeRequest { public: AWS_VPCLATTICE_API CreateServiceNetworkVpcAssociationRequest(); // 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 "CreateServiceNetworkVpcAssociation"; } AWS_VPCLATTICE_API Aws::String SerializePayload() const override; /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If you retry a request that completed successfully * using the same client token and parameters, the retry succeeds without * performing any actions. If the parameters aren't identical, the retry fails.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If you retry a request that completed successfully * using the same client token and parameters, the retry succeeds without * performing any actions. If the parameters aren't identical, the retry fails.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If you retry a request that completed successfully * using the same client token and parameters, the retry succeeds without * performing any actions. If the parameters aren't identical, the retry fails.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If you retry a request that completed successfully * using the same client token and parameters, the retry succeeds without * performing any actions. If the parameters aren't identical, the retry fails.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If you retry a request that completed successfully * using the same client token and parameters, the retry succeeds without * performing any actions. If the parameters aren't identical, the retry fails.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If you retry a request that completed successfully * using the same client token and parameters, the retry succeeds without * performing any actions. If the parameters aren't identical, the retry fails.

*/ inline CreateServiceNetworkVpcAssociationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If you retry a request that completed successfully * using the same client token and parameters, the retry succeeds without * performing any actions. If the parameters aren't identical, the retry fails.

*/ inline CreateServiceNetworkVpcAssociationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A unique, case-sensitive identifier that you provide to ensure the * idempotency of the request. If you retry a request that completed successfully * using the same client token and parameters, the retry succeeds without * performing any actions. If the parameters aren't identical, the retry fails.

*/ inline CreateServiceNetworkVpcAssociationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The IDs of the security groups. Security groups aren't added by default. You * can add a security group to apply network level controls to control which * resources in a VPC are allowed to access the service network and its services. * For more information, see Control * traffic to resources using security groups in the Amazon VPC User * Guide.

*/ inline const Aws::Vector& GetSecurityGroupIds() const{ return m_securityGroupIds; } /** *

The IDs of the security groups. Security groups aren't added by default. You * can add a security group to apply network level controls to control which * resources in a VPC are allowed to access the service network and its services. * For more information, see Control * traffic to resources using security groups in the Amazon VPC User * Guide.

*/ inline bool SecurityGroupIdsHasBeenSet() const { return m_securityGroupIdsHasBeenSet; } /** *

The IDs of the security groups. Security groups aren't added by default. You * can add a security group to apply network level controls to control which * resources in a VPC are allowed to access the service network and its services. * For more information, see Control * traffic to resources using security groups in the Amazon VPC User * Guide.

*/ inline void SetSecurityGroupIds(const Aws::Vector& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = value; } /** *

The IDs of the security groups. Security groups aren't added by default. You * can add a security group to apply network level controls to control which * resources in a VPC are allowed to access the service network and its services. * For more information, see Control * traffic to resources using security groups in the Amazon VPC User * Guide.

*/ inline void SetSecurityGroupIds(Aws::Vector&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds = std::move(value); } /** *

The IDs of the security groups. Security groups aren't added by default. You * can add a security group to apply network level controls to control which * resources in a VPC are allowed to access the service network and its services. * For more information, see Control * traffic to resources using security groups in the Amazon VPC User * Guide.

*/ inline CreateServiceNetworkVpcAssociationRequest& WithSecurityGroupIds(const Aws::Vector& value) { SetSecurityGroupIds(value); return *this;} /** *

The IDs of the security groups. Security groups aren't added by default. You * can add a security group to apply network level controls to control which * resources in a VPC are allowed to access the service network and its services. * For more information, see Control * traffic to resources using security groups in the Amazon VPC User * Guide.

*/ inline CreateServiceNetworkVpcAssociationRequest& WithSecurityGroupIds(Aws::Vector&& value) { SetSecurityGroupIds(std::move(value)); return *this;} /** *

The IDs of the security groups. Security groups aren't added by default. You * can add a security group to apply network level controls to control which * resources in a VPC are allowed to access the service network and its services. * For more information, see Control * traffic to resources using security groups in the Amazon VPC User * Guide.

*/ inline CreateServiceNetworkVpcAssociationRequest& AddSecurityGroupIds(const Aws::String& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *

The IDs of the security groups. Security groups aren't added by default. You * can add a security group to apply network level controls to control which * resources in a VPC are allowed to access the service network and its services. * For more information, see Control * traffic to resources using security groups in the Amazon VPC User * Guide.

*/ inline CreateServiceNetworkVpcAssociationRequest& AddSecurityGroupIds(Aws::String&& value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(std::move(value)); return *this; } /** *

The IDs of the security groups. Security groups aren't added by default. You * can add a security group to apply network level controls to control which * resources in a VPC are allowed to access the service network and its services. * For more information, see Control * traffic to resources using security groups in the Amazon VPC User * Guide.

*/ inline CreateServiceNetworkVpcAssociationRequest& AddSecurityGroupIds(const char* value) { m_securityGroupIdsHasBeenSet = true; m_securityGroupIds.push_back(value); return *this; } /** *

The ID or Amazon Resource Name (ARN) of the service network. You must use the * ARN when the resources specified in the operation are in different accounts.

*/ inline const Aws::String& GetServiceNetworkIdentifier() const{ return m_serviceNetworkIdentifier; } /** *

The ID or Amazon Resource Name (ARN) of the service network. You must use the * ARN when the resources specified in the operation are in different accounts.

*/ inline bool ServiceNetworkIdentifierHasBeenSet() const { return m_serviceNetworkIdentifierHasBeenSet; } /** *

The ID or Amazon Resource Name (ARN) of the service network. You must use the * ARN when the resources specified in the operation are in different accounts.

*/ inline void SetServiceNetworkIdentifier(const Aws::String& value) { m_serviceNetworkIdentifierHasBeenSet = true; m_serviceNetworkIdentifier = value; } /** *

The ID or Amazon Resource Name (ARN) of the service network. You must use the * ARN when the resources specified in the operation are in different accounts.

*/ inline void SetServiceNetworkIdentifier(Aws::String&& value) { m_serviceNetworkIdentifierHasBeenSet = true; m_serviceNetworkIdentifier = std::move(value); } /** *

The ID or Amazon Resource Name (ARN) of the service network. You must use the * ARN when the resources specified in the operation are in different accounts.

*/ inline void SetServiceNetworkIdentifier(const char* value) { m_serviceNetworkIdentifierHasBeenSet = true; m_serviceNetworkIdentifier.assign(value); } /** *

The ID or Amazon Resource Name (ARN) of the service network. You must use the * ARN when the resources specified in the operation are in different accounts.

*/ inline CreateServiceNetworkVpcAssociationRequest& WithServiceNetworkIdentifier(const Aws::String& value) { SetServiceNetworkIdentifier(value); return *this;} /** *

The ID or Amazon Resource Name (ARN) of the service network. You must use the * ARN when the resources specified in the operation are in different accounts.

*/ inline CreateServiceNetworkVpcAssociationRequest& WithServiceNetworkIdentifier(Aws::String&& value) { SetServiceNetworkIdentifier(std::move(value)); return *this;} /** *

The ID or Amazon Resource Name (ARN) of the service network. You must use the * ARN when the resources specified in the operation are in different accounts.

*/ inline CreateServiceNetworkVpcAssociationRequest& WithServiceNetworkIdentifier(const char* value) { SetServiceNetworkIdentifier(value); return *this;} /** *

The tags for the association.

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

The tags for the association.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags for the association.

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

The tags for the association.

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

The tags for the association.

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

The tags for the association.

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

The tags for the association.

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

The tags for the association.

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

The tags for the association.

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

The tags for the association.

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

The tags for the association.

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

The tags for the association.

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

The tags for the association.

*/ inline CreateServiceNetworkVpcAssociationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The ID of the VPC.

*/ inline const Aws::String& GetVpcIdentifier() const{ return m_vpcIdentifier; } /** *

The ID of the VPC.

*/ inline bool VpcIdentifierHasBeenSet() const { return m_vpcIdentifierHasBeenSet; } /** *

The ID of the VPC.

*/ inline void SetVpcIdentifier(const Aws::String& value) { m_vpcIdentifierHasBeenSet = true; m_vpcIdentifier = value; } /** *

The ID of the VPC.

*/ inline void SetVpcIdentifier(Aws::String&& value) { m_vpcIdentifierHasBeenSet = true; m_vpcIdentifier = std::move(value); } /** *

The ID of the VPC.

*/ inline void SetVpcIdentifier(const char* value) { m_vpcIdentifierHasBeenSet = true; m_vpcIdentifier.assign(value); } /** *

The ID of the VPC.

*/ inline CreateServiceNetworkVpcAssociationRequest& WithVpcIdentifier(const Aws::String& value) { SetVpcIdentifier(value); return *this;} /** *

The ID of the VPC.

*/ inline CreateServiceNetworkVpcAssociationRequest& WithVpcIdentifier(Aws::String&& value) { SetVpcIdentifier(std::move(value)); return *this;} /** *

The ID of the VPC.

*/ inline CreateServiceNetworkVpcAssociationRequest& WithVpcIdentifier(const char* value) { SetVpcIdentifier(value); return *this;} private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::Vector m_securityGroupIds; bool m_securityGroupIdsHasBeenSet = false; Aws::String m_serviceNetworkIdentifier; bool m_serviceNetworkIdentifierHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_vpcIdentifier; bool m_vpcIdentifierHasBeenSet = false; }; } // namespace Model } // namespace VPCLattice } // namespace Aws