/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace DeviceFarm { namespace Model { /** *

Represents a request to the create upload operation.

See Also:

* AWS * API Reference

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

The ARN of the project for the upload.

*/ inline const Aws::String& GetProjectArn() const{ return m_projectArn; } /** *

The ARN of the project for the upload.

*/ inline bool ProjectArnHasBeenSet() const { return m_projectArnHasBeenSet; } /** *

The ARN of the project for the upload.

*/ inline void SetProjectArn(const Aws::String& value) { m_projectArnHasBeenSet = true; m_projectArn = value; } /** *

The ARN of the project for the upload.

*/ inline void SetProjectArn(Aws::String&& value) { m_projectArnHasBeenSet = true; m_projectArn = std::move(value); } /** *

The ARN of the project for the upload.

*/ inline void SetProjectArn(const char* value) { m_projectArnHasBeenSet = true; m_projectArn.assign(value); } /** *

The ARN of the project for the upload.

*/ inline CreateUploadRequest& WithProjectArn(const Aws::String& value) { SetProjectArn(value); return *this;} /** *

The ARN of the project for the upload.

*/ inline CreateUploadRequest& WithProjectArn(Aws::String&& value) { SetProjectArn(std::move(value)); return *this;} /** *

The ARN of the project for the upload.

*/ inline CreateUploadRequest& WithProjectArn(const char* value) { SetProjectArn(value); return *this;} /** *

The upload's file name. The name should not contain any forward slashes * (/). If you are uploading an iOS app, the file name must end with * the .ipa extension. If you are uploading an Android app, the file * name must end with the .apk extension. For all others, the file * name must end with the .zip file extension.

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

The upload's file name. The name should not contain any forward slashes * (/). If you are uploading an iOS app, the file name must end with * the .ipa extension. If you are uploading an Android app, the file * name must end with the .apk extension. For all others, the file * name must end with the .zip file extension.

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

The upload's file name. The name should not contain any forward slashes * (/). If you are uploading an iOS app, the file name must end with * the .ipa extension. If you are uploading an Android app, the file * name must end with the .apk extension. For all others, the file * name must end with the .zip file extension.

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

The upload's file name. The name should not contain any forward slashes * (/). If you are uploading an iOS app, the file name must end with * the .ipa extension. If you are uploading an Android app, the file * name must end with the .apk extension. For all others, the file * name must end with the .zip file extension.

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

The upload's file name. The name should not contain any forward slashes * (/). If you are uploading an iOS app, the file name must end with * the .ipa extension. If you are uploading an Android app, the file * name must end with the .apk extension. For all others, the file * name must end with the .zip file extension.

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

The upload's file name. The name should not contain any forward slashes * (/). If you are uploading an iOS app, the file name must end with * the .ipa extension. If you are uploading an Android app, the file * name must end with the .apk extension. For all others, the file * name must end with the .zip file extension.

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

The upload's file name. The name should not contain any forward slashes * (/). If you are uploading an iOS app, the file name must end with * the .ipa extension. If you are uploading an Android app, the file * name must end with the .apk extension. For all others, the file * name must end with the .zip file extension.

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

The upload's file name. The name should not contain any forward slashes * (/). If you are uploading an iOS app, the file name must end with * the .ipa extension. If you are uploading an Android app, the file * name must end with the .apk extension. For all others, the file * name must end with the .zip file extension.

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

The upload's upload type.

Must be one of the following values:

*
  • ANDROID_APP

  • IOS_APP

  • WEB_APP

    *
  • EXTERNAL_DATA

  • APPIUM_JAVA_JUNIT_TEST_PACKAGE

    *
  • APPIUM_JAVA_TESTNG_TEST_PACKAGE

  • *

    APPIUM_PYTHON_TEST_PACKAGE

  • APPIUM_NODE_TEST_PACKAGE

    *
  • APPIUM_RUBY_TEST_PACKAGE

  • *

    APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE

  • *

    APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE

  • *

    APPIUM_WEB_PYTHON_TEST_PACKAGE

  • *

    APPIUM_WEB_NODE_TEST_PACKAGE

  • *

    APPIUM_WEB_RUBY_TEST_PACKAGE

  • CALABASH_TEST_PACKAGE

    *
  • INSTRUMENTATION_TEST_PACKAGE

  • *

    UIAUTOMATION_TEST_PACKAGE

  • UIAUTOMATOR_TEST_PACKAGE

    *
  • XCTEST_TEST_PACKAGE

  • XCTEST_UI_TEST_PACKAGE

    *
  • APPIUM_JAVA_JUNIT_TEST_SPEC

  • *

    APPIUM_JAVA_TESTNG_TEST_SPEC

  • APPIUM_PYTHON_TEST_SPEC

    *
  • APPIUM_NODE_TEST_SPEC

  • APPIUM_RUBY_TEST_SPEC

    *
  • APPIUM_WEB_JAVA_JUNIT_TEST_SPEC

  • *

    APPIUM_WEB_JAVA_TESTNG_TEST_SPEC

  • *

    APPIUM_WEB_PYTHON_TEST_SPEC

  • APPIUM_WEB_NODE_TEST_SPEC

    *
  • APPIUM_WEB_RUBY_TEST_SPEC

  • *

    INSTRUMENTATION_TEST_SPEC

  • XCTEST_UI_TEST_SPEC

  • *

If you call CreateUpload with WEB_APP * specified, AWS Device Farm throws an ArgumentException error.

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

The upload's upload type.

Must be one of the following values:

*
  • ANDROID_APP

  • IOS_APP

  • WEB_APP

    *
  • EXTERNAL_DATA

  • APPIUM_JAVA_JUNIT_TEST_PACKAGE

    *
  • APPIUM_JAVA_TESTNG_TEST_PACKAGE

  • *

    APPIUM_PYTHON_TEST_PACKAGE

  • APPIUM_NODE_TEST_PACKAGE

    *
  • APPIUM_RUBY_TEST_PACKAGE

  • *

    APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE

  • *

    APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE

  • *

    APPIUM_WEB_PYTHON_TEST_PACKAGE

  • *

    APPIUM_WEB_NODE_TEST_PACKAGE

  • *

    APPIUM_WEB_RUBY_TEST_PACKAGE

  • CALABASH_TEST_PACKAGE

    *
  • INSTRUMENTATION_TEST_PACKAGE

  • *

    UIAUTOMATION_TEST_PACKAGE

  • UIAUTOMATOR_TEST_PACKAGE

    *
  • XCTEST_TEST_PACKAGE

  • XCTEST_UI_TEST_PACKAGE

    *
  • APPIUM_JAVA_JUNIT_TEST_SPEC

  • *

    APPIUM_JAVA_TESTNG_TEST_SPEC

  • APPIUM_PYTHON_TEST_SPEC

    *
  • APPIUM_NODE_TEST_SPEC

  • APPIUM_RUBY_TEST_SPEC

    *
  • APPIUM_WEB_JAVA_JUNIT_TEST_SPEC

  • *

    APPIUM_WEB_JAVA_TESTNG_TEST_SPEC

  • *

    APPIUM_WEB_PYTHON_TEST_SPEC

  • APPIUM_WEB_NODE_TEST_SPEC

    *
  • APPIUM_WEB_RUBY_TEST_SPEC

  • *

    INSTRUMENTATION_TEST_SPEC

  • XCTEST_UI_TEST_SPEC

  • *

If you call CreateUpload with WEB_APP * specified, AWS Device Farm throws an ArgumentException error.

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

The upload's upload type.

Must be one of the following values:

*
  • ANDROID_APP

  • IOS_APP

  • WEB_APP

    *
  • EXTERNAL_DATA

  • APPIUM_JAVA_JUNIT_TEST_PACKAGE

    *
  • APPIUM_JAVA_TESTNG_TEST_PACKAGE

  • *

    APPIUM_PYTHON_TEST_PACKAGE

  • APPIUM_NODE_TEST_PACKAGE

    *
  • APPIUM_RUBY_TEST_PACKAGE

  • *

    APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE

  • *

    APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE

  • *

    APPIUM_WEB_PYTHON_TEST_PACKAGE

  • *

    APPIUM_WEB_NODE_TEST_PACKAGE

  • *

    APPIUM_WEB_RUBY_TEST_PACKAGE

  • CALABASH_TEST_PACKAGE

    *
  • INSTRUMENTATION_TEST_PACKAGE

  • *

    UIAUTOMATION_TEST_PACKAGE

  • UIAUTOMATOR_TEST_PACKAGE

    *
  • XCTEST_TEST_PACKAGE

  • XCTEST_UI_TEST_PACKAGE

    *
  • APPIUM_JAVA_JUNIT_TEST_SPEC

  • *

    APPIUM_JAVA_TESTNG_TEST_SPEC

  • APPIUM_PYTHON_TEST_SPEC

    *
  • APPIUM_NODE_TEST_SPEC

  • APPIUM_RUBY_TEST_SPEC

    *
  • APPIUM_WEB_JAVA_JUNIT_TEST_SPEC

  • *

    APPIUM_WEB_JAVA_TESTNG_TEST_SPEC

  • *

    APPIUM_WEB_PYTHON_TEST_SPEC

  • APPIUM_WEB_NODE_TEST_SPEC

    *
  • APPIUM_WEB_RUBY_TEST_SPEC

  • *

    INSTRUMENTATION_TEST_SPEC

  • XCTEST_UI_TEST_SPEC

  • *

If you call CreateUpload with WEB_APP * specified, AWS Device Farm throws an ArgumentException error.

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

The upload's upload type.

Must be one of the following values:

*
  • ANDROID_APP

  • IOS_APP

  • WEB_APP

    *
  • EXTERNAL_DATA

  • APPIUM_JAVA_JUNIT_TEST_PACKAGE

    *
  • APPIUM_JAVA_TESTNG_TEST_PACKAGE

  • *

    APPIUM_PYTHON_TEST_PACKAGE

  • APPIUM_NODE_TEST_PACKAGE

    *
  • APPIUM_RUBY_TEST_PACKAGE

  • *

    APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE

  • *

    APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE

  • *

    APPIUM_WEB_PYTHON_TEST_PACKAGE

  • *

    APPIUM_WEB_NODE_TEST_PACKAGE

  • *

    APPIUM_WEB_RUBY_TEST_PACKAGE

  • CALABASH_TEST_PACKAGE

    *
  • INSTRUMENTATION_TEST_PACKAGE

  • *

    UIAUTOMATION_TEST_PACKAGE

  • UIAUTOMATOR_TEST_PACKAGE

    *
  • XCTEST_TEST_PACKAGE

  • XCTEST_UI_TEST_PACKAGE

    *
  • APPIUM_JAVA_JUNIT_TEST_SPEC

  • *

    APPIUM_JAVA_TESTNG_TEST_SPEC

  • APPIUM_PYTHON_TEST_SPEC

    *
  • APPIUM_NODE_TEST_SPEC

  • APPIUM_RUBY_TEST_SPEC

    *
  • APPIUM_WEB_JAVA_JUNIT_TEST_SPEC

  • *

    APPIUM_WEB_JAVA_TESTNG_TEST_SPEC

  • *

    APPIUM_WEB_PYTHON_TEST_SPEC

  • APPIUM_WEB_NODE_TEST_SPEC

    *
  • APPIUM_WEB_RUBY_TEST_SPEC

  • *

    INSTRUMENTATION_TEST_SPEC

  • XCTEST_UI_TEST_SPEC

  • *

If you call CreateUpload with WEB_APP * specified, AWS Device Farm throws an ArgumentException error.

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

The upload's upload type.

Must be one of the following values:

*
  • ANDROID_APP

  • IOS_APP

  • WEB_APP

    *
  • EXTERNAL_DATA

  • APPIUM_JAVA_JUNIT_TEST_PACKAGE

    *
  • APPIUM_JAVA_TESTNG_TEST_PACKAGE

  • *

    APPIUM_PYTHON_TEST_PACKAGE

  • APPIUM_NODE_TEST_PACKAGE

    *
  • APPIUM_RUBY_TEST_PACKAGE

  • *

    APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE

  • *

    APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE

  • *

    APPIUM_WEB_PYTHON_TEST_PACKAGE

  • *

    APPIUM_WEB_NODE_TEST_PACKAGE

  • *

    APPIUM_WEB_RUBY_TEST_PACKAGE

  • CALABASH_TEST_PACKAGE

    *
  • INSTRUMENTATION_TEST_PACKAGE

  • *

    UIAUTOMATION_TEST_PACKAGE

  • UIAUTOMATOR_TEST_PACKAGE

    *
  • XCTEST_TEST_PACKAGE

  • XCTEST_UI_TEST_PACKAGE

    *
  • APPIUM_JAVA_JUNIT_TEST_SPEC

  • *

    APPIUM_JAVA_TESTNG_TEST_SPEC

  • APPIUM_PYTHON_TEST_SPEC

    *
  • APPIUM_NODE_TEST_SPEC

  • APPIUM_RUBY_TEST_SPEC

    *
  • APPIUM_WEB_JAVA_JUNIT_TEST_SPEC

  • *

    APPIUM_WEB_JAVA_TESTNG_TEST_SPEC

  • *

    APPIUM_WEB_PYTHON_TEST_SPEC

  • APPIUM_WEB_NODE_TEST_SPEC

    *
  • APPIUM_WEB_RUBY_TEST_SPEC

  • *

    INSTRUMENTATION_TEST_SPEC

  • XCTEST_UI_TEST_SPEC

  • *

If you call CreateUpload with WEB_APP * specified, AWS Device Farm throws an ArgumentException error.

*/ inline CreateUploadRequest& WithType(const UploadType& value) { SetType(value); return *this;} /** *

The upload's upload type.

Must be one of the following values:

*
  • ANDROID_APP

  • IOS_APP

  • WEB_APP

    *
  • EXTERNAL_DATA

  • APPIUM_JAVA_JUNIT_TEST_PACKAGE

    *
  • APPIUM_JAVA_TESTNG_TEST_PACKAGE

  • *

    APPIUM_PYTHON_TEST_PACKAGE

  • APPIUM_NODE_TEST_PACKAGE

    *
  • APPIUM_RUBY_TEST_PACKAGE

  • *

    APPIUM_WEB_JAVA_JUNIT_TEST_PACKAGE

  • *

    APPIUM_WEB_JAVA_TESTNG_TEST_PACKAGE

  • *

    APPIUM_WEB_PYTHON_TEST_PACKAGE

  • *

    APPIUM_WEB_NODE_TEST_PACKAGE

  • *

    APPIUM_WEB_RUBY_TEST_PACKAGE

  • CALABASH_TEST_PACKAGE

    *
  • INSTRUMENTATION_TEST_PACKAGE

  • *

    UIAUTOMATION_TEST_PACKAGE

  • UIAUTOMATOR_TEST_PACKAGE

    *
  • XCTEST_TEST_PACKAGE

  • XCTEST_UI_TEST_PACKAGE

    *
  • APPIUM_JAVA_JUNIT_TEST_SPEC

  • *

    APPIUM_JAVA_TESTNG_TEST_SPEC

  • APPIUM_PYTHON_TEST_SPEC

    *
  • APPIUM_NODE_TEST_SPEC

  • APPIUM_RUBY_TEST_SPEC

    *
  • APPIUM_WEB_JAVA_JUNIT_TEST_SPEC

  • *

    APPIUM_WEB_JAVA_TESTNG_TEST_SPEC

  • *

    APPIUM_WEB_PYTHON_TEST_SPEC

  • APPIUM_WEB_NODE_TEST_SPEC

    *
  • APPIUM_WEB_RUBY_TEST_SPEC

  • *

    INSTRUMENTATION_TEST_SPEC

  • XCTEST_UI_TEST_SPEC

  • *

If you call CreateUpload with WEB_APP * specified, AWS Device Farm throws an ArgumentException error.

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

The upload's content type (for example, * application/octet-stream).

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

The upload's content type (for example, * application/octet-stream).

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

The upload's content type (for example, * application/octet-stream).

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

The upload's content type (for example, * application/octet-stream).

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

The upload's content type (for example, * application/octet-stream).

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

The upload's content type (for example, * application/octet-stream).

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

The upload's content type (for example, * application/octet-stream).

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

The upload's content type (for example, * application/octet-stream).

*/ inline CreateUploadRequest& WithContentType(const char* value) { SetContentType(value); return *this;} private: Aws::String m_projectArn; bool m_projectArnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; UploadType m_type; bool m_typeHasBeenSet = false; Aws::String m_contentType; bool m_contentTypeHasBeenSet = false; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws