/** * 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 SSM { namespace Model { /** */ class GetParameterRequest : public SSMRequest { public: AWS_SSM_API GetParameterRequest(); // 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 "GetParameter"; } AWS_SSM_API Aws::String SerializePayload() const override; AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; ///@{ /** *

The name or Amazon Resource Name (ARN) of the parameter that you want to * query. For parameters shared with you from another account, you must use the * full ARN.

To query by parameter label, use "Name": * "name:label". To query by parameter version, use "Name": * "name:version".

For more information about shared parameters, see * Working * with shared parameters in the Amazon Web Services Systems Manager User * Guide.

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

Return decrypted values for secure string parameters. This flag is ignored * for String and StringList parameter types.

*/ inline bool GetWithDecryption() const{ return m_withDecryption; } inline bool WithDecryptionHasBeenSet() const { return m_withDecryptionHasBeenSet; } inline void SetWithDecryption(bool value) { m_withDecryptionHasBeenSet = true; m_withDecryption = value; } inline GetParameterRequest& WithWithDecryption(bool value) { SetWithDecryption(value); return *this;} ///@} private: Aws::String m_name; bool m_nameHasBeenSet = false; bool m_withDecryption; bool m_withDecryptionHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws