/** * 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 SSM { namespace Model { /** */ class LabelParameterVersionRequest : public SSMRequest { public: AWS_SSM_API LabelParameterVersionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "LabelParameterVersion"; } AWS_SSM_API Aws::String SerializePayload() const override; AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The parameter name on which you want to attach one or more labels.

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

The parameter name on which you want to attach one or more labels.

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

The parameter name on which you want to attach one or more labels.

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

The parameter name on which you want to attach one or more labels.

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

The parameter name on which you want to attach one or more labels.

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

The parameter name on which you want to attach one or more labels.

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

The parameter name on which you want to attach one or more labels.

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

The parameter name on which you want to attach one or more labels.

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

The specific version of the parameter on which you want to attach one or more * labels. If no version is specified, the system attaches the label to the latest * version.

*/ inline long long GetParameterVersion() const{ return m_parameterVersion; } /** *

The specific version of the parameter on which you want to attach one or more * labels. If no version is specified, the system attaches the label to the latest * version.

*/ inline bool ParameterVersionHasBeenSet() const { return m_parameterVersionHasBeenSet; } /** *

The specific version of the parameter on which you want to attach one or more * labels. If no version is specified, the system attaches the label to the latest * version.

*/ inline void SetParameterVersion(long long value) { m_parameterVersionHasBeenSet = true; m_parameterVersion = value; } /** *

The specific version of the parameter on which you want to attach one or more * labels. If no version is specified, the system attaches the label to the latest * version.

*/ inline LabelParameterVersionRequest& WithParameterVersion(long long value) { SetParameterVersion(value); return *this;} /** *

One or more labels to attach to the specified parameter version.

*/ inline const Aws::Vector& GetLabels() const{ return m_labels; } /** *

One or more labels to attach to the specified parameter version.

*/ inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; } /** *

One or more labels to attach to the specified parameter version.

*/ inline void SetLabels(const Aws::Vector& value) { m_labelsHasBeenSet = true; m_labels = value; } /** *

One or more labels to attach to the specified parameter version.

*/ inline void SetLabels(Aws::Vector&& value) { m_labelsHasBeenSet = true; m_labels = std::move(value); } /** *

One or more labels to attach to the specified parameter version.

*/ inline LabelParameterVersionRequest& WithLabels(const Aws::Vector& value) { SetLabels(value); return *this;} /** *

One or more labels to attach to the specified parameter version.

*/ inline LabelParameterVersionRequest& WithLabels(Aws::Vector&& value) { SetLabels(std::move(value)); return *this;} /** *

One or more labels to attach to the specified parameter version.

*/ inline LabelParameterVersionRequest& AddLabels(const Aws::String& value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; } /** *

One or more labels to attach to the specified parameter version.

*/ inline LabelParameterVersionRequest& AddLabels(Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.push_back(std::move(value)); return *this; } /** *

One or more labels to attach to the specified parameter version.

*/ inline LabelParameterVersionRequest& AddLabels(const char* value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; long long m_parameterVersion; bool m_parameterVersionHasBeenSet = false; Aws::Vector m_labels; bool m_labelsHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws