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

Configuration for validating an instance.

See Also:

AWS * API Reference

*/ class ServerValidationConfiguration { public: AWS_SMS_API ServerValidationConfiguration(); AWS_SMS_API ServerValidationConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_SMS_API ServerValidationConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SMS_API Aws::Utils::Json::JsonValue Jsonize() const; inline const Server& GetServer() const{ return m_server; } inline bool ServerHasBeenSet() const { return m_serverHasBeenSet; } inline void SetServer(const Server& value) { m_serverHasBeenSet = true; m_server = value; } inline void SetServer(Server&& value) { m_serverHasBeenSet = true; m_server = std::move(value); } inline ServerValidationConfiguration& WithServer(const Server& value) { SetServer(value); return *this;} inline ServerValidationConfiguration& WithServer(Server&& value) { SetServer(std::move(value)); return *this;} /** *

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 ServerValidationConfiguration& WithValidationId(const Aws::String& value) { SetValidationId(value); return *this;} /** *

The ID of the validation.

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

The ID of the validation.

*/ inline ServerValidationConfiguration& 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 ServerValidationConfiguration& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the configuration.

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

The name of the configuration.

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

The validation strategy.

*/ inline const ServerValidationStrategy& GetServerValidationStrategy() const{ return m_serverValidationStrategy; } /** *

The validation strategy.

*/ inline bool ServerValidationStrategyHasBeenSet() const { return m_serverValidationStrategyHasBeenSet; } /** *

The validation strategy.

*/ inline void SetServerValidationStrategy(const ServerValidationStrategy& value) { m_serverValidationStrategyHasBeenSet = true; m_serverValidationStrategy = value; } /** *

The validation strategy.

*/ inline void SetServerValidationStrategy(ServerValidationStrategy&& value) { m_serverValidationStrategyHasBeenSet = true; m_serverValidationStrategy = std::move(value); } /** *

The validation strategy.

*/ inline ServerValidationConfiguration& WithServerValidationStrategy(const ServerValidationStrategy& value) { SetServerValidationStrategy(value); return *this;} /** *

The validation strategy.

*/ inline ServerValidationConfiguration& WithServerValidationStrategy(ServerValidationStrategy&& value) { SetServerValidationStrategy(std::move(value)); return *this;} /** *

The validation parameters.

*/ inline const UserDataValidationParameters& GetUserDataValidationParameters() const{ return m_userDataValidationParameters; } /** *

The validation parameters.

*/ inline bool UserDataValidationParametersHasBeenSet() const { return m_userDataValidationParametersHasBeenSet; } /** *

The validation parameters.

*/ inline void SetUserDataValidationParameters(const UserDataValidationParameters& value) { m_userDataValidationParametersHasBeenSet = true; m_userDataValidationParameters = value; } /** *

The validation parameters.

*/ inline void SetUserDataValidationParameters(UserDataValidationParameters&& value) { m_userDataValidationParametersHasBeenSet = true; m_userDataValidationParameters = std::move(value); } /** *

The validation parameters.

*/ inline ServerValidationConfiguration& WithUserDataValidationParameters(const UserDataValidationParameters& value) { SetUserDataValidationParameters(value); return *this;} /** *

The validation parameters.

*/ inline ServerValidationConfiguration& WithUserDataValidationParameters(UserDataValidationParameters&& value) { SetUserDataValidationParameters(std::move(value)); return *this;} private: Server m_server; bool m_serverHasBeenSet = false; Aws::String m_validationId; bool m_validationIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; ServerValidationStrategy m_serverValidationStrategy; bool m_serverValidationStrategyHasBeenSet = false; UserDataValidationParameters m_userDataValidationParameters; bool m_userDataValidationParametersHasBeenSet = false; }; } // namespace Model } // namespace SMS } // namespace Aws