/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SMS { namespace Model { /** *

Configuration for validating an application.

See Also:

AWS * API Reference

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

The ID of the validation.

*/ inline const Aws::String& GetValidationId() const{ return m_validationId; } /** *

The ID of the validation.

*/ inline bool ValidationIdHasBeenSet() const { return m_validationIdHasBeenSet; } /** *

The ID of the validation.

*/ inline void SetValidationId(const Aws::String& value) { m_validationIdHasBeenSet = true; m_validationId = value; } /** *

The ID of the validation.

*/ inline void SetValidationId(Aws::String&& value) { m_validationIdHasBeenSet = true; m_validationId = std::move(value); } /** *

The ID of the validation.

*/ inline void SetValidationId(const char* value) { m_validationIdHasBeenSet = true; m_validationId.assign(value); } /** *

The ID of the validation.

*/ inline AppValidationConfiguration& WithValidationId(const Aws::String& value) { SetValidationId(value); return *this;} /** *

The ID of the validation.

*/ inline AppValidationConfiguration& WithValidationId(Aws::String&& value) { SetValidationId(std::move(value)); return *this;} /** *

The ID of the validation.

*/ inline AppValidationConfiguration& WithValidationId(const char* value) { SetValidationId(value); return *this;} /** *

The name of the configuration.

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

The name of the configuration.

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

The name of the configuration.

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

The name of the configuration.

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

The name of the configuration.

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

The name of the configuration.

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

The name of the configuration.

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

The name of the configuration.

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

The validation strategy.

*/ inline const AppValidationStrategy& GetAppValidationStrategy() const{ return m_appValidationStrategy; } /** *

The validation strategy.

*/ inline bool AppValidationStrategyHasBeenSet() const { return m_appValidationStrategyHasBeenSet; } /** *

The validation strategy.

*/ inline void SetAppValidationStrategy(const AppValidationStrategy& value) { m_appValidationStrategyHasBeenSet = true; m_appValidationStrategy = value; } /** *

The validation strategy.

*/ inline void SetAppValidationStrategy(AppValidationStrategy&& value) { m_appValidationStrategyHasBeenSet = true; m_appValidationStrategy = std::move(value); } /** *

The validation strategy.

*/ inline AppValidationConfiguration& WithAppValidationStrategy(const AppValidationStrategy& value) { SetAppValidationStrategy(value); return *this;} /** *

The validation strategy.

*/ inline AppValidationConfiguration& WithAppValidationStrategy(AppValidationStrategy&& value) { SetAppValidationStrategy(std::move(value)); return *this;} /** *

The validation parameters.

*/ inline const SSMValidationParameters& GetSsmValidationParameters() const{ return m_ssmValidationParameters; } /** *

The validation parameters.

*/ inline bool SsmValidationParametersHasBeenSet() const { return m_ssmValidationParametersHasBeenSet; } /** *

The validation parameters.

*/ inline void SetSsmValidationParameters(const SSMValidationParameters& value) { m_ssmValidationParametersHasBeenSet = true; m_ssmValidationParameters = value; } /** *

The validation parameters.

*/ inline void SetSsmValidationParameters(SSMValidationParameters&& value) { m_ssmValidationParametersHasBeenSet = true; m_ssmValidationParameters = std::move(value); } /** *

The validation parameters.

*/ inline AppValidationConfiguration& WithSsmValidationParameters(const SSMValidationParameters& value) { SetSsmValidationParameters(value); return *this;} /** *

The validation parameters.

*/ inline AppValidationConfiguration& WithSsmValidationParameters(SSMValidationParameters&& value) { SetSsmValidationParameters(std::move(value)); return *this;} private: Aws::String m_validationId; bool m_validationIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; AppValidationStrategy m_appValidationStrategy; bool m_appValidationStrategyHasBeenSet = false; SSMValidationParameters m_ssmValidationParameters; bool m_ssmValidationParametersHasBeenSet = false; }; } // namespace Model } // namespace SMS } // namespace Aws