/** * 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 GreengrassV2 { namespace Model { /** */ class GetComponentVersionArtifactRequest : public GreengrassV2Request { public: AWS_GREENGRASSV2_API GetComponentVersionArtifactRequest(); // 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 "GetComponentVersionArtifact"; } AWS_GREENGRASSV2_API Aws::String SerializePayload() const override; /** *

The ARN * of the component version. Specify the ARN of a public or a Lambda component * version.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN * of the component version. Specify the ARN of a public or a Lambda component * version.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN * of the component version. Specify the ARN of a public or a Lambda component * version.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The ARN * of the component version. Specify the ARN of a public or a Lambda component * version.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The ARN * of the component version. Specify the ARN of a public or a Lambda component * version.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The ARN * of the component version. Specify the ARN of a public or a Lambda component * version.

*/ inline GetComponentVersionArtifactRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN * of the component version. Specify the ARN of a public or a Lambda component * version.

*/ inline GetComponentVersionArtifactRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN * of the component version. Specify the ARN of a public or a Lambda component * version.

*/ inline GetComponentVersionArtifactRequest& WithArn(const char* value) { SetArn(value); return *this;} /** *

The name of the artifact.

You can use the GetComponent * operation to download the component recipe, which includes the URI of the * artifact. The artifact name is the section of the URI after the scheme. For * example, in the artifact URI greengrass:SomeArtifact.zip, the * artifact name is SomeArtifact.zip.

*/ inline const Aws::String& GetArtifactName() const{ return m_artifactName; } /** *

The name of the artifact.

You can use the GetComponent * operation to download the component recipe, which includes the URI of the * artifact. The artifact name is the section of the URI after the scheme. For * example, in the artifact URI greengrass:SomeArtifact.zip, the * artifact name is SomeArtifact.zip.

*/ inline bool ArtifactNameHasBeenSet() const { return m_artifactNameHasBeenSet; } /** *

The name of the artifact.

You can use the GetComponent * operation to download the component recipe, which includes the URI of the * artifact. The artifact name is the section of the URI after the scheme. For * example, in the artifact URI greengrass:SomeArtifact.zip, the * artifact name is SomeArtifact.zip.

*/ inline void SetArtifactName(const Aws::String& value) { m_artifactNameHasBeenSet = true; m_artifactName = value; } /** *

The name of the artifact.

You can use the GetComponent * operation to download the component recipe, which includes the URI of the * artifact. The artifact name is the section of the URI after the scheme. For * example, in the artifact URI greengrass:SomeArtifact.zip, the * artifact name is SomeArtifact.zip.

*/ inline void SetArtifactName(Aws::String&& value) { m_artifactNameHasBeenSet = true; m_artifactName = std::move(value); } /** *

The name of the artifact.

You can use the GetComponent * operation to download the component recipe, which includes the URI of the * artifact. The artifact name is the section of the URI after the scheme. For * example, in the artifact URI greengrass:SomeArtifact.zip, the * artifact name is SomeArtifact.zip.

*/ inline void SetArtifactName(const char* value) { m_artifactNameHasBeenSet = true; m_artifactName.assign(value); } /** *

The name of the artifact.

You can use the GetComponent * operation to download the component recipe, which includes the URI of the * artifact. The artifact name is the section of the URI after the scheme. For * example, in the artifact URI greengrass:SomeArtifact.zip, the * artifact name is SomeArtifact.zip.

*/ inline GetComponentVersionArtifactRequest& WithArtifactName(const Aws::String& value) { SetArtifactName(value); return *this;} /** *

The name of the artifact.

You can use the GetComponent * operation to download the component recipe, which includes the URI of the * artifact. The artifact name is the section of the URI after the scheme. For * example, in the artifact URI greengrass:SomeArtifact.zip, the * artifact name is SomeArtifact.zip.

*/ inline GetComponentVersionArtifactRequest& WithArtifactName(Aws::String&& value) { SetArtifactName(std::move(value)); return *this;} /** *

The name of the artifact.

You can use the GetComponent * operation to download the component recipe, which includes the URI of the * artifact. The artifact name is the section of the URI after the scheme. For * example, in the artifact URI greengrass:SomeArtifact.zip, the * artifact name is SomeArtifact.zip.

*/ inline GetComponentVersionArtifactRequest& WithArtifactName(const char* value) { SetArtifactName(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_artifactName; bool m_artifactNameHasBeenSet = false; }; } // namespace Model } // namespace GreengrassV2 } // namespace Aws