/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace VPCLattice { namespace Model { /** */ class CreateAccessLogSubscriptionRequest : public VPCLatticeRequest { public: AWS_VPCLATTICE_API CreateAccessLogSubscriptionRequest(); // 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 "CreateAccessLogSubscription"; } 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 CreateAccessLogSubscriptionRequest& 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 CreateAccessLogSubscriptionRequest& 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 CreateAccessLogSubscriptionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The Amazon Resource Name (ARN) of the destination. The supported destination * types are CloudWatch Log groups, Kinesis Data Firehose delivery streams, and * Amazon S3 buckets.

*/ inline const Aws::String& GetDestinationArn() const{ return m_destinationArn; } /** *

The Amazon Resource Name (ARN) of the destination. The supported destination * types are CloudWatch Log groups, Kinesis Data Firehose delivery streams, and * Amazon S3 buckets.

*/ inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the destination. The supported destination * types are CloudWatch Log groups, Kinesis Data Firehose delivery streams, and * Amazon S3 buckets.

*/ inline void SetDestinationArn(const Aws::String& value) { m_destinationArnHasBeenSet = true; m_destinationArn = value; } /** *

The Amazon Resource Name (ARN) of the destination. The supported destination * types are CloudWatch Log groups, Kinesis Data Firehose delivery streams, and * Amazon S3 buckets.

*/ inline void SetDestinationArn(Aws::String&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the destination. The supported destination * types are CloudWatch Log groups, Kinesis Data Firehose delivery streams, and * Amazon S3 buckets.

*/ inline void SetDestinationArn(const char* value) { m_destinationArnHasBeenSet = true; m_destinationArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the destination. The supported destination * types are CloudWatch Log groups, Kinesis Data Firehose delivery streams, and * Amazon S3 buckets.

*/ inline CreateAccessLogSubscriptionRequest& WithDestinationArn(const Aws::String& value) { SetDestinationArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the destination. The supported destination * types are CloudWatch Log groups, Kinesis Data Firehose delivery streams, and * Amazon S3 buckets.

*/ inline CreateAccessLogSubscriptionRequest& WithDestinationArn(Aws::String&& value) { SetDestinationArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the destination. The supported destination * types are CloudWatch Log groups, Kinesis Data Firehose delivery streams, and * Amazon S3 buckets.

*/ inline CreateAccessLogSubscriptionRequest& WithDestinationArn(const char* value) { SetDestinationArn(value); return *this;} /** *

The ID or Amazon Resource Name (ARN) of the service network or service.

*/ inline const Aws::String& GetResourceIdentifier() const{ return m_resourceIdentifier; } /** *

The ID or Amazon Resource Name (ARN) of the service network or service.

*/ inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; } /** *

The ID or Amazon Resource Name (ARN) of the service network or service.

*/ inline void SetResourceIdentifier(const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; } /** *

The ID or Amazon Resource Name (ARN) of the service network or service.

*/ inline void SetResourceIdentifier(Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); } /** *

The ID or Amazon Resource Name (ARN) of the service network or service.

*/ inline void SetResourceIdentifier(const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.assign(value); } /** *

The ID or Amazon Resource Name (ARN) of the service network or service.

*/ inline CreateAccessLogSubscriptionRequest& WithResourceIdentifier(const Aws::String& value) { SetResourceIdentifier(value); return *this;} /** *

The ID or Amazon Resource Name (ARN) of the service network or service.

*/ inline CreateAccessLogSubscriptionRequest& WithResourceIdentifier(Aws::String&& value) { SetResourceIdentifier(std::move(value)); return *this;} /** *

The ID or Amazon Resource Name (ARN) of the service network or service.

*/ inline CreateAccessLogSubscriptionRequest& WithResourceIdentifier(const char* value) { SetResourceIdentifier(value); return *this;} /** *

The tags for the access log subscription.

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

The tags for the access log subscription.

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

The tags for the access log subscription.

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

The tags for the access log subscription.

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

The tags for the access log subscription.

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

The tags for the access log subscription.

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

The tags for the access log subscription.

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

The tags for the access log subscription.

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

The tags for the access log subscription.

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

The tags for the access log subscription.

*/ inline CreateAccessLogSubscriptionRequest& 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 access log subscription.

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

The tags for the access log subscription.

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

The tags for the access log subscription.

*/ inline CreateAccessLogSubscriptionRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::String m_destinationArn; bool m_destinationArnHasBeenSet = false; Aws::String m_resourceIdentifier; bool m_resourceIdentifierHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace VPCLattice } // namespace Aws