/** * 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 DeviceFarm { namespace Model { /** */ class UpdateUploadRequest : public DeviceFarmRequest { public: AWS_DEVICEFARM_API UpdateUploadRequest(); // 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 "UpdateUpload"; } AWS_DEVICEFARM_API Aws::String SerializePayload() const override; AWS_DEVICEFARM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the uploaded test spec.

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

The Amazon Resource Name (ARN) of the uploaded test spec.

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

The Amazon Resource Name (ARN) of the uploaded test spec.

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

The Amazon Resource Name (ARN) of the uploaded test spec.

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

The Amazon Resource Name (ARN) of the uploaded test spec.

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

The Amazon Resource Name (ARN) of the uploaded test spec.

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

The Amazon Resource Name (ARN) of the uploaded test spec.

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

The Amazon Resource Name (ARN) of the uploaded test spec.

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

The upload's test spec file name. The name must not contain any forward * slashes (/). The test spec file name must end with the .yaml or * .yml file extension.

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

The upload's test spec file name. The name must not contain any forward * slashes (/). The test spec file name must end with the .yaml or * .yml file extension.

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

The upload's test spec file name. The name must not contain any forward * slashes (/). The test spec file name must end with the .yaml or * .yml file extension.

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

The upload's test spec file name. The name must not contain any forward * slashes (/). The test spec file name must end with the .yaml or * .yml file extension.

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

The upload's test spec file name. The name must not contain any forward * slashes (/). The test spec file name must end with the .yaml or * .yml file extension.

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

The upload's test spec file name. The name must not contain any forward * slashes (/). The test spec file name must end with the .yaml or * .yml file extension.

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

The upload's test spec file name. The name must not contain any forward * slashes (/). The test spec file name must end with the .yaml or * .yml file extension.

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

The upload's test spec file name. The name must not contain any forward * slashes (/). The test spec file name must end with the .yaml or * .yml file extension.

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

The upload's content type (for example, application/x-yaml).

*/ inline const Aws::String& GetContentType() const{ return m_contentType; } /** *

The upload's content type (for example, application/x-yaml).

*/ inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; } /** *

The upload's content type (for example, application/x-yaml).

*/ inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; } /** *

The upload's content type (for example, application/x-yaml).

*/ inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); } /** *

The upload's content type (for example, application/x-yaml).

*/ inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); } /** *

The upload's content type (for example, application/x-yaml).

*/ inline UpdateUploadRequest& WithContentType(const Aws::String& value) { SetContentType(value); return *this;} /** *

The upload's content type (for example, application/x-yaml).

*/ inline UpdateUploadRequest& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;} /** *

The upload's content type (for example, application/x-yaml).

*/ inline UpdateUploadRequest& WithContentType(const char* value) { SetContentType(value); return *this;} /** *

Set to true if the YAML file has changed and must be updated. Otherwise, set * to false.

*/ inline bool GetEditContent() const{ return m_editContent; } /** *

Set to true if the YAML file has changed and must be updated. Otherwise, set * to false.

*/ inline bool EditContentHasBeenSet() const { return m_editContentHasBeenSet; } /** *

Set to true if the YAML file has changed and must be updated. Otherwise, set * to false.

*/ inline void SetEditContent(bool value) { m_editContentHasBeenSet = true; m_editContent = value; } /** *

Set to true if the YAML file has changed and must be updated. Otherwise, set * to false.

*/ inline UpdateUploadRequest& WithEditContent(bool value) { SetEditContent(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_contentType; bool m_contentTypeHasBeenSet = false; bool m_editContent; bool m_editContentHasBeenSet = false; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws