/** * 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 Http { class URI; } //namespace Http namespace imagebuilder { namespace Model { /** */ class GetComponentRequest : public ImagebuilderRequest { public: AWS_IMAGEBUILDER_API GetComponentRequest(); // 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 "GetComponent"; } AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override; AWS_IMAGEBUILDER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The Amazon Resource Name (ARN) of the component that you want to get. Regex * requires the suffix /\d+$.

*/ inline const Aws::String& GetComponentBuildVersionArn() const{ return m_componentBuildVersionArn; } /** *

The Amazon Resource Name (ARN) of the component that you want to get. Regex * requires the suffix /\d+$.

*/ inline bool ComponentBuildVersionArnHasBeenSet() const { return m_componentBuildVersionArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the component that you want to get. Regex * requires the suffix /\d+$.

*/ inline void SetComponentBuildVersionArn(const Aws::String& value) { m_componentBuildVersionArnHasBeenSet = true; m_componentBuildVersionArn = value; } /** *

The Amazon Resource Name (ARN) of the component that you want to get. Regex * requires the suffix /\d+$.

*/ inline void SetComponentBuildVersionArn(Aws::String&& value) { m_componentBuildVersionArnHasBeenSet = true; m_componentBuildVersionArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the component that you want to get. Regex * requires the suffix /\d+$.

*/ inline void SetComponentBuildVersionArn(const char* value) { m_componentBuildVersionArnHasBeenSet = true; m_componentBuildVersionArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the component that you want to get. Regex * requires the suffix /\d+$.

*/ inline GetComponentRequest& WithComponentBuildVersionArn(const Aws::String& value) { SetComponentBuildVersionArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the component that you want to get. Regex * requires the suffix /\d+$.

*/ inline GetComponentRequest& WithComponentBuildVersionArn(Aws::String&& value) { SetComponentBuildVersionArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the component that you want to get. Regex * requires the suffix /\d+$.

*/ inline GetComponentRequest& WithComponentBuildVersionArn(const char* value) { SetComponentBuildVersionArn(value); return *this;} private: Aws::String m_componentBuildVersionArn; bool m_componentBuildVersionArnHasBeenSet = false; }; } // namespace Model } // namespace imagebuilder } // namespace Aws