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

Contains validation parameters.

See Also:

AWS * API Reference

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

The location of the validation script.

*/ inline const Source& GetSource() const{ return m_source; } /** *

The location of the validation script.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

The location of the validation script.

*/ inline void SetSource(const Source& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

The location of the validation script.

*/ inline void SetSource(Source&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

The location of the validation script.

*/ inline UserDataValidationParameters& WithSource(const Source& value) { SetSource(value); return *this;} /** *

The location of the validation script.

*/ inline UserDataValidationParameters& WithSource(Source&& value) { SetSource(std::move(value)); return *this;} /** *

The type of validation script.

*/ inline const ScriptType& GetScriptType() const{ return m_scriptType; } /** *

The type of validation script.

*/ inline bool ScriptTypeHasBeenSet() const { return m_scriptTypeHasBeenSet; } /** *

The type of validation script.

*/ inline void SetScriptType(const ScriptType& value) { m_scriptTypeHasBeenSet = true; m_scriptType = value; } /** *

The type of validation script.

*/ inline void SetScriptType(ScriptType&& value) { m_scriptTypeHasBeenSet = true; m_scriptType = std::move(value); } /** *

The type of validation script.

*/ inline UserDataValidationParameters& WithScriptType(const ScriptType& value) { SetScriptType(value); return *this;} /** *

The type of validation script.

*/ inline UserDataValidationParameters& WithScriptType(ScriptType&& value) { SetScriptType(std::move(value)); return *this;} private: Source m_source; bool m_sourceHasBeenSet = false; ScriptType m_scriptType; bool m_scriptTypeHasBeenSet = false; }; } // namespace Model } // namespace SMS } // namespace Aws