/** * 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 AppRunner { namespace Model { /** */ class CreateObservabilityConfigurationRequest : public AppRunnerRequest { public: AWS_APPRUNNER_API CreateObservabilityConfigurationRequest(); // 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 "CreateObservabilityConfiguration"; } AWS_APPRUNNER_API Aws::String SerializePayload() const override; AWS_APPRUNNER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A name for the observability configuration. When you use it for the first * time in an Amazon Web Services Region, App Runner creates revision number * 1 of this name. When you use the same name in subsequent calls, App * Runner creates incremental revisions of the configuration.

The * name DefaultConfiguration is reserved. You can't use it to create a * new observability configuration, and you can't create a revision of it.

*

When you want to use your own observability configuration for your App Runner * service, create a configuration with a different name, and then provide * it when you create or update your service.

*/ inline const Aws::String& GetObservabilityConfigurationName() const{ return m_observabilityConfigurationName; } /** *

A name for the observability configuration. When you use it for the first * time in an Amazon Web Services Region, App Runner creates revision number * 1 of this name. When you use the same name in subsequent calls, App * Runner creates incremental revisions of the configuration.

The * name DefaultConfiguration is reserved. You can't use it to create a * new observability configuration, and you can't create a revision of it.

*

When you want to use your own observability configuration for your App Runner * service, create a configuration with a different name, and then provide * it when you create or update your service.

*/ inline bool ObservabilityConfigurationNameHasBeenSet() const { return m_observabilityConfigurationNameHasBeenSet; } /** *

A name for the observability configuration. When you use it for the first * time in an Amazon Web Services Region, App Runner creates revision number * 1 of this name. When you use the same name in subsequent calls, App * Runner creates incremental revisions of the configuration.

The * name DefaultConfiguration is reserved. You can't use it to create a * new observability configuration, and you can't create a revision of it.

*

When you want to use your own observability configuration for your App Runner * service, create a configuration with a different name, and then provide * it when you create or update your service.

*/ inline void SetObservabilityConfigurationName(const Aws::String& value) { m_observabilityConfigurationNameHasBeenSet = true; m_observabilityConfigurationName = value; } /** *

A name for the observability configuration. When you use it for the first * time in an Amazon Web Services Region, App Runner creates revision number * 1 of this name. When you use the same name in subsequent calls, App * Runner creates incremental revisions of the configuration.

The * name DefaultConfiguration is reserved. You can't use it to create a * new observability configuration, and you can't create a revision of it.

*

When you want to use your own observability configuration for your App Runner * service, create a configuration with a different name, and then provide * it when you create or update your service.

*/ inline void SetObservabilityConfigurationName(Aws::String&& value) { m_observabilityConfigurationNameHasBeenSet = true; m_observabilityConfigurationName = std::move(value); } /** *

A name for the observability configuration. When you use it for the first * time in an Amazon Web Services Region, App Runner creates revision number * 1 of this name. When you use the same name in subsequent calls, App * Runner creates incremental revisions of the configuration.

The * name DefaultConfiguration is reserved. You can't use it to create a * new observability configuration, and you can't create a revision of it.

*

When you want to use your own observability configuration for your App Runner * service, create a configuration with a different name, and then provide * it when you create or update your service.

*/ inline void SetObservabilityConfigurationName(const char* value) { m_observabilityConfigurationNameHasBeenSet = true; m_observabilityConfigurationName.assign(value); } /** *

A name for the observability configuration. When you use it for the first * time in an Amazon Web Services Region, App Runner creates revision number * 1 of this name. When you use the same name in subsequent calls, App * Runner creates incremental revisions of the configuration.

The * name DefaultConfiguration is reserved. You can't use it to create a * new observability configuration, and you can't create a revision of it.

*

When you want to use your own observability configuration for your App Runner * service, create a configuration with a different name, and then provide * it when you create or update your service.

*/ inline CreateObservabilityConfigurationRequest& WithObservabilityConfigurationName(const Aws::String& value) { SetObservabilityConfigurationName(value); return *this;} /** *

A name for the observability configuration. When you use it for the first * time in an Amazon Web Services Region, App Runner creates revision number * 1 of this name. When you use the same name in subsequent calls, App * Runner creates incremental revisions of the configuration.

The * name DefaultConfiguration is reserved. You can't use it to create a * new observability configuration, and you can't create a revision of it.

*

When you want to use your own observability configuration for your App Runner * service, create a configuration with a different name, and then provide * it when you create or update your service.

*/ inline CreateObservabilityConfigurationRequest& WithObservabilityConfigurationName(Aws::String&& value) { SetObservabilityConfigurationName(std::move(value)); return *this;} /** *

A name for the observability configuration. When you use it for the first * time in an Amazon Web Services Region, App Runner creates revision number * 1 of this name. When you use the same name in subsequent calls, App * Runner creates incremental revisions of the configuration.

The * name DefaultConfiguration is reserved. You can't use it to create a * new observability configuration, and you can't create a revision of it.

*

When you want to use your own observability configuration for your App Runner * service, create a configuration with a different name, and then provide * it when you create or update your service.

*/ inline CreateObservabilityConfigurationRequest& WithObservabilityConfigurationName(const char* value) { SetObservabilityConfigurationName(value); return *this;} /** *

The configuration of the tracing feature within this observability * configuration. If you don't specify it, App Runner doesn't enable tracing.

*/ inline const TraceConfiguration& GetTraceConfiguration() const{ return m_traceConfiguration; } /** *

The configuration of the tracing feature within this observability * configuration. If you don't specify it, App Runner doesn't enable tracing.

*/ inline bool TraceConfigurationHasBeenSet() const { return m_traceConfigurationHasBeenSet; } /** *

The configuration of the tracing feature within this observability * configuration. If you don't specify it, App Runner doesn't enable tracing.

*/ inline void SetTraceConfiguration(const TraceConfiguration& value) { m_traceConfigurationHasBeenSet = true; m_traceConfiguration = value; } /** *

The configuration of the tracing feature within this observability * configuration. If you don't specify it, App Runner doesn't enable tracing.

*/ inline void SetTraceConfiguration(TraceConfiguration&& value) { m_traceConfigurationHasBeenSet = true; m_traceConfiguration = std::move(value); } /** *

The configuration of the tracing feature within this observability * configuration. If you don't specify it, App Runner doesn't enable tracing.

*/ inline CreateObservabilityConfigurationRequest& WithTraceConfiguration(const TraceConfiguration& value) { SetTraceConfiguration(value); return *this;} /** *

The configuration of the tracing feature within this observability * configuration. If you don't specify it, App Runner doesn't enable tracing.

*/ inline CreateObservabilityConfigurationRequest& WithTraceConfiguration(TraceConfiguration&& value) { SetTraceConfiguration(std::move(value)); return *this;} /** *

A list of metadata items that you can associate with your observability * configuration resource. A tag is a key-value pair.

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

A list of metadata items that you can associate with your observability * configuration resource. A tag is a key-value pair.

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

A list of metadata items that you can associate with your observability * configuration resource. A tag is a key-value pair.

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

A list of metadata items that you can associate with your observability * configuration resource. A tag is a key-value pair.

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

A list of metadata items that you can associate with your observability * configuration resource. A tag is a key-value pair.

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

A list of metadata items that you can associate with your observability * configuration resource. A tag is a key-value pair.

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

A list of metadata items that you can associate with your observability * configuration resource. A tag is a key-value pair.

*/ inline CreateObservabilityConfigurationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of metadata items that you can associate with your observability * configuration resource. A tag is a key-value pair.

*/ inline CreateObservabilityConfigurationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_observabilityConfigurationName; bool m_observabilityConfigurationNameHasBeenSet = false; TraceConfiguration m_traceConfiguration; bool m_traceConfigurationHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace AppRunner } // namespace Aws