Files

115 lines
4.8 KiB
C
Raw Permalink Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ssm/SSM_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/ssm/model/DocumentParameterType.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace SSM
{
namespace Model
{
/**
* <p>Parameters specified in a Systems Manager document that run on the server
* when the command is run. </p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/ssm-2014-11-06/DocumentParameter">AWS
* API Reference</a></p>
*/
class DocumentParameter
{
public:
AWS_SSM_API DocumentParameter();
AWS_SSM_API DocumentParameter(Aws::Utils::Json::JsonView jsonValue);
AWS_SSM_API DocumentParameter& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const;
///@{
/**
* <p>The name of the parameter.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
inline DocumentParameter& WithName(const Aws::String& value) { SetName(value); return *this;}
inline DocumentParameter& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
inline DocumentParameter& WithName(const char* value) { SetName(value); return *this;}
///@}
///@{
/**
* <p>The type of parameter. The type can be either String or StringList.</p>
*/
inline const DocumentParameterType& GetType() const{ return m_type; }
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
inline void SetType(const DocumentParameterType& value) { m_typeHasBeenSet = true; m_type = value; }
inline void SetType(DocumentParameterType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
inline DocumentParameter& WithType(const DocumentParameterType& value) { SetType(value); return *this;}
inline DocumentParameter& WithType(DocumentParameterType&& value) { SetType(std::move(value)); return *this;}
///@}
///@{
/**
* <p>A description of what the parameter does, how to use it, the default value,
* and whether or not the parameter is optional.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
inline DocumentParameter& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
inline DocumentParameter& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
inline DocumentParameter& WithDescription(const char* value) { SetDescription(value); return *this;}
///@}
///@{
/**
* <p>If specified, the default values for the parameters. Parameters without a
* default value are required. Parameters with a default value are optional.</p>
*/
inline const Aws::String& GetDefaultValue() const{ return m_defaultValue; }
inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
inline void SetDefaultValue(const Aws::String& value) { m_defaultValueHasBeenSet = true; m_defaultValue = value; }
inline void SetDefaultValue(Aws::String&& value) { m_defaultValueHasBeenSet = true; m_defaultValue = std::move(value); }
inline void SetDefaultValue(const char* value) { m_defaultValueHasBeenSet = true; m_defaultValue.assign(value); }
inline DocumentParameter& WithDefaultValue(const Aws::String& value) { SetDefaultValue(value); return *this;}
inline DocumentParameter& WithDefaultValue(Aws::String&& value) { SetDefaultValue(std::move(value)); return *this;}
inline DocumentParameter& WithDefaultValue(const char* value) { SetDefaultValue(value); return *this;}
///@}
private:
Aws::String m_name;
bool m_nameHasBeenSet = false;
DocumentParameterType m_type;
bool m_typeHasBeenSet = false;
Aws::String m_description;
bool m_descriptionHasBeenSet = false;
Aws::String m_defaultValue;
bool m_defaultValueHasBeenSet = false;
};
} // namespace Model
} // namespace SSM
} // namespace Aws