/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace CloudWatchLogs { namespace Model { /** */ class PutDeliverySourceRequest : public CloudWatchLogsRequest { public: AWS_CLOUDWATCHLOGS_API PutDeliverySourceRequest(); // 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 "PutDeliverySource"; } AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override; AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A name for this delivery source. This name must be unique for all delivery * sources in your account.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

A name for this delivery source. This name must be unique for all delivery * sources in your account.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

A name for this delivery source. This name must be unique for all delivery * sources in your account.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

A name for this delivery source. This name must be unique for all delivery * sources in your account.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

A name for this delivery source. This name must be unique for all delivery * sources in your account.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

A name for this delivery source. This name must be unique for all delivery * sources in your account.

*/ inline PutDeliverySourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

A name for this delivery source. This name must be unique for all delivery * sources in your account.

*/ inline PutDeliverySourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

A name for this delivery source. This name must be unique for all delivery * sources in your account.

*/ inline PutDeliverySourceRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The ARN of the Amazon Web Services resource that is generating and sending * logs. For example, * arn:aws:workmail:us-east-1:123456789012:organization/m-1234EXAMPLEabcd1234abcd1234abcd1234 *

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

The ARN of the Amazon Web Services resource that is generating and sending * logs. For example, * arn:aws:workmail:us-east-1:123456789012:organization/m-1234EXAMPLEabcd1234abcd1234abcd1234 *

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

The ARN of the Amazon Web Services resource that is generating and sending * logs. For example, * arn:aws:workmail:us-east-1:123456789012:organization/m-1234EXAMPLEabcd1234abcd1234abcd1234 *

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

The ARN of the Amazon Web Services resource that is generating and sending * logs. For example, * arn:aws:workmail:us-east-1:123456789012:organization/m-1234EXAMPLEabcd1234abcd1234abcd1234 *

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

The ARN of the Amazon Web Services resource that is generating and sending * logs. For example, * arn:aws:workmail:us-east-1:123456789012:organization/m-1234EXAMPLEabcd1234abcd1234abcd1234 *

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

The ARN of the Amazon Web Services resource that is generating and sending * logs. For example, * arn:aws:workmail:us-east-1:123456789012:organization/m-1234EXAMPLEabcd1234abcd1234abcd1234 *

*/ inline PutDeliverySourceRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

The ARN of the Amazon Web Services resource that is generating and sending * logs. For example, * arn:aws:workmail:us-east-1:123456789012:organization/m-1234EXAMPLEabcd1234abcd1234abcd1234 *

*/ inline PutDeliverySourceRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

The ARN of the Amazon Web Services resource that is generating and sending * logs. For example, * arn:aws:workmail:us-east-1:123456789012:organization/m-1234EXAMPLEabcd1234abcd1234abcd1234 *

*/ inline PutDeliverySourceRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *

Defines the type of log that the source is sending.

  • For * Amazon CodeWhisperer, the valid value is EVENT_LOGS.

  • *

    For IAM Identity Centerr, the valid value is ERROR_LOGS.

    *
  • For Amazon WorkMail, the valid values are * ACCESS_CONTROL_LOGS, AUTHENTICATION_LOGS, * WORKMAIL_AVAILABILITY_PROVIDER_LOGS, and * WORKMAIL_MAILBOX_ACCESS_LOGS.

*/ inline const Aws::String& GetLogType() const{ return m_logType; } /** *

Defines the type of log that the source is sending.

  • For * Amazon CodeWhisperer, the valid value is EVENT_LOGS.

  • *

    For IAM Identity Centerr, the valid value is ERROR_LOGS.

    *
  • For Amazon WorkMail, the valid values are * ACCESS_CONTROL_LOGS, AUTHENTICATION_LOGS, * WORKMAIL_AVAILABILITY_PROVIDER_LOGS, and * WORKMAIL_MAILBOX_ACCESS_LOGS.

*/ inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; } /** *

Defines the type of log that the source is sending.

  • For * Amazon CodeWhisperer, the valid value is EVENT_LOGS.

  • *

    For IAM Identity Centerr, the valid value is ERROR_LOGS.

    *
  • For Amazon WorkMail, the valid values are * ACCESS_CONTROL_LOGS, AUTHENTICATION_LOGS, * WORKMAIL_AVAILABILITY_PROVIDER_LOGS, and * WORKMAIL_MAILBOX_ACCESS_LOGS.

*/ inline void SetLogType(const Aws::String& value) { m_logTypeHasBeenSet = true; m_logType = value; } /** *

Defines the type of log that the source is sending.

  • For * Amazon CodeWhisperer, the valid value is EVENT_LOGS.

  • *

    For IAM Identity Centerr, the valid value is ERROR_LOGS.

    *
  • For Amazon WorkMail, the valid values are * ACCESS_CONTROL_LOGS, AUTHENTICATION_LOGS, * WORKMAIL_AVAILABILITY_PROVIDER_LOGS, and * WORKMAIL_MAILBOX_ACCESS_LOGS.

*/ inline void SetLogType(Aws::String&& value) { m_logTypeHasBeenSet = true; m_logType = std::move(value); } /** *

Defines the type of log that the source is sending.

  • For * Amazon CodeWhisperer, the valid value is EVENT_LOGS.

  • *

    For IAM Identity Centerr, the valid value is ERROR_LOGS.

    *
  • For Amazon WorkMail, the valid values are * ACCESS_CONTROL_LOGS, AUTHENTICATION_LOGS, * WORKMAIL_AVAILABILITY_PROVIDER_LOGS, and * WORKMAIL_MAILBOX_ACCESS_LOGS.

*/ inline void SetLogType(const char* value) { m_logTypeHasBeenSet = true; m_logType.assign(value); } /** *

Defines the type of log that the source is sending.

  • For * Amazon CodeWhisperer, the valid value is EVENT_LOGS.

  • *

    For IAM Identity Centerr, the valid value is ERROR_LOGS.

    *
  • For Amazon WorkMail, the valid values are * ACCESS_CONTROL_LOGS, AUTHENTICATION_LOGS, * WORKMAIL_AVAILABILITY_PROVIDER_LOGS, and * WORKMAIL_MAILBOX_ACCESS_LOGS.

*/ inline PutDeliverySourceRequest& WithLogType(const Aws::String& value) { SetLogType(value); return *this;} /** *

Defines the type of log that the source is sending.

  • For * Amazon CodeWhisperer, the valid value is EVENT_LOGS.

  • *

    For IAM Identity Centerr, the valid value is ERROR_LOGS.

    *
  • For Amazon WorkMail, the valid values are * ACCESS_CONTROL_LOGS, AUTHENTICATION_LOGS, * WORKMAIL_AVAILABILITY_PROVIDER_LOGS, and * WORKMAIL_MAILBOX_ACCESS_LOGS.

*/ inline PutDeliverySourceRequest& WithLogType(Aws::String&& value) { SetLogType(std::move(value)); return *this;} /** *

Defines the type of log that the source is sending.

  • For * Amazon CodeWhisperer, the valid value is EVENT_LOGS.

  • *

    For IAM Identity Centerr, the valid value is ERROR_LOGS.

    *
  • For Amazon WorkMail, the valid values are * ACCESS_CONTROL_LOGS, AUTHENTICATION_LOGS, * WORKMAIL_AVAILABILITY_PROVIDER_LOGS, and * WORKMAIL_MAILBOX_ACCESS_LOGS.

*/ inline PutDeliverySourceRequest& WithLogType(const char* value) { SetLogType(value); return *this;} /** *

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

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

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

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

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

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

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

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

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

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

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

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

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

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

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

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

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

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

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

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

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

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

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

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

An optional list of key-value pairs to associate with the resource.

*

For more information about tagging, see Tagging * Amazon Web Services resources

*/ inline PutDeliverySourceRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; Aws::String m_logType; bool m_logTypeHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws