/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudWatchEvidently { namespace Model { /** *

Use this parameter to configure client-side evaluation for your project. * Client-side evaluation allows your application to assign variations to user * sessions locally instead of by calling the EvaluateFeature * operation to assign the variations. This mitigates the latency and availability * risks that come with an API call.

ProjectAppConfigResource * is a structure that defines the configuration of how your application integrates * with AppConfig to run client-side evaluation.

See Also:

AWS * API Reference

*/ class ProjectAppConfigResourceConfig { public: AWS_CLOUDWATCHEVIDENTLY_API ProjectAppConfigResourceConfig(); AWS_CLOUDWATCHEVIDENTLY_API ProjectAppConfigResourceConfig(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHEVIDENTLY_API ProjectAppConfigResourceConfig& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDWATCHEVIDENTLY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ID of the AppConfig application to use for client-side evaluation.

*/ inline const Aws::String& GetApplicationId() const{ return m_applicationId; } /** *

The ID of the AppConfig application to use for client-side evaluation.

*/ inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; } /** *

The ID of the AppConfig application to use for client-side evaluation.

*/ inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; } /** *

The ID of the AppConfig application to use for client-side evaluation.

*/ inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); } /** *

The ID of the AppConfig application to use for client-side evaluation.

*/ inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); } /** *

The ID of the AppConfig application to use for client-side evaluation.

*/ inline ProjectAppConfigResourceConfig& WithApplicationId(const Aws::String& value) { SetApplicationId(value); return *this;} /** *

The ID of the AppConfig application to use for client-side evaluation.

*/ inline ProjectAppConfigResourceConfig& WithApplicationId(Aws::String&& value) { SetApplicationId(std::move(value)); return *this;} /** *

The ID of the AppConfig application to use for client-side evaluation.

*/ inline ProjectAppConfigResourceConfig& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} /** *

The ID of the AppConfig environment to use for client-side evaluation. This * must be an environment that is within the application that you specify for * applicationId.

*/ inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; } /** *

The ID of the AppConfig environment to use for client-side evaluation. This * must be an environment that is within the application that you specify for * applicationId.

*/ inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; } /** *

The ID of the AppConfig environment to use for client-side evaluation. This * must be an environment that is within the application that you specify for * applicationId.

*/ inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; } /** *

The ID of the AppConfig environment to use for client-side evaluation. This * must be an environment that is within the application that you specify for * applicationId.

*/ inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); } /** *

The ID of the AppConfig environment to use for client-side evaluation. This * must be an environment that is within the application that you specify for * applicationId.

*/ inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); } /** *

The ID of the AppConfig environment to use for client-side evaluation. This * must be an environment that is within the application that you specify for * applicationId.

*/ inline ProjectAppConfigResourceConfig& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;} /** *

The ID of the AppConfig environment to use for client-side evaluation. This * must be an environment that is within the application that you specify for * applicationId.

*/ inline ProjectAppConfigResourceConfig& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;} /** *

The ID of the AppConfig environment to use for client-side evaluation. This * must be an environment that is within the application that you specify for * applicationId.

*/ inline ProjectAppConfigResourceConfig& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;} private: Aws::String m_applicationId; bool m_applicationIdHasBeenSet = false; Aws::String m_environmentId; bool m_environmentIdHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvidently } // namespace Aws