/** * 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 DeviceFarm { namespace Model { /** *

Artifacts are video and other files that are produced in the process of * running a browser in an automated context.

Video elements might * be broken up into multiple artifacts as they grow in size during creation.

*

See Also:

AWS * API Reference

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

The file name of the artifact.

*/ inline const Aws::String& GetFilename() const{ return m_filename; } /** *

The file name of the artifact.

*/ inline bool FilenameHasBeenSet() const { return m_filenameHasBeenSet; } /** *

The file name of the artifact.

*/ inline void SetFilename(const Aws::String& value) { m_filenameHasBeenSet = true; m_filename = value; } /** *

The file name of the artifact.

*/ inline void SetFilename(Aws::String&& value) { m_filenameHasBeenSet = true; m_filename = std::move(value); } /** *

The file name of the artifact.

*/ inline void SetFilename(const char* value) { m_filenameHasBeenSet = true; m_filename.assign(value); } /** *

The file name of the artifact.

*/ inline TestGridSessionArtifact& WithFilename(const Aws::String& value) { SetFilename(value); return *this;} /** *

The file name of the artifact.

*/ inline TestGridSessionArtifact& WithFilename(Aws::String&& value) { SetFilename(std::move(value)); return *this;} /** *

The file name of the artifact.

*/ inline TestGridSessionArtifact& WithFilename(const char* value) { SetFilename(value); return *this;} /** *

The kind of artifact.

*/ inline const TestGridSessionArtifactType& GetType() const{ return m_type; } /** *

The kind of artifact.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The kind of artifact.

*/ inline void SetType(const TestGridSessionArtifactType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The kind of artifact.

*/ inline void SetType(TestGridSessionArtifactType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The kind of artifact.

*/ inline TestGridSessionArtifact& WithType(const TestGridSessionArtifactType& value) { SetType(value); return *this;} /** *

The kind of artifact.

*/ inline TestGridSessionArtifact& WithType(TestGridSessionArtifactType&& value) { SetType(std::move(value)); return *this;} /** *

A semi-stable URL to the content of the object.

*/ inline const Aws::String& GetUrl() const{ return m_url; } /** *

A semi-stable URL to the content of the object.

*/ inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; } /** *

A semi-stable URL to the content of the object.

*/ inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; } /** *

A semi-stable URL to the content of the object.

*/ inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); } /** *

A semi-stable URL to the content of the object.

*/ inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); } /** *

A semi-stable URL to the content of the object.

*/ inline TestGridSessionArtifact& WithUrl(const Aws::String& value) { SetUrl(value); return *this;} /** *

A semi-stable URL to the content of the object.

*/ inline TestGridSessionArtifact& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;} /** *

A semi-stable URL to the content of the object.

*/ inline TestGridSessionArtifact& WithUrl(const char* value) { SetUrl(value); return *this;} private: Aws::String m_filename; bool m_filenameHasBeenSet = false; TestGridSessionArtifactType m_type; bool m_typeHasBeenSet = false; Aws::String m_url; bool m_urlHasBeenSet = false; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws