/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodePipeline { namespace Model { /** *

Artifact details for the action execution, such as the artifact * location.

See Also:

AWS * API Reference

*/ class ArtifactDetail { public: AWS_CODEPIPELINE_API ArtifactDetail(); AWS_CODEPIPELINE_API ArtifactDetail(Aws::Utils::Json::JsonView jsonValue); AWS_CODEPIPELINE_API ArtifactDetail& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The artifact object name for the action execution.

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

The artifact object name for the action execution.

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

The artifact object name for the action execution.

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

The artifact object name for the action execution.

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

The artifact object name for the action execution.

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

The artifact object name for the action execution.

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

The artifact object name for the action execution.

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

The artifact object name for the action execution.

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

The Amazon S3 artifact location for the action execution.

*/ inline const S3Location& GetS3location() const{ return m_s3location; } /** *

The Amazon S3 artifact location for the action execution.

*/ inline bool S3locationHasBeenSet() const { return m_s3locationHasBeenSet; } /** *

The Amazon S3 artifact location for the action execution.

*/ inline void SetS3location(const S3Location& value) { m_s3locationHasBeenSet = true; m_s3location = value; } /** *

The Amazon S3 artifact location for the action execution.

*/ inline void SetS3location(S3Location&& value) { m_s3locationHasBeenSet = true; m_s3location = std::move(value); } /** *

The Amazon S3 artifact location for the action execution.

*/ inline ArtifactDetail& WithS3location(const S3Location& value) { SetS3location(value); return *this;} /** *

The Amazon S3 artifact location for the action execution.

*/ inline ArtifactDetail& WithS3location(S3Location&& value) { SetS3location(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; S3Location m_s3location; bool m_s3locationHasBeenSet = false; }; } // namespace Model } // namespace CodePipeline } // namespace Aws