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

The name of your instance profile.

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

The name of your instance profile.

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

The name of your instance profile.

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

The name of your instance profile.

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

The name of your instance profile.

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

The name of your instance profile.

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

The name of your instance profile.

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

The name of your instance profile.

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

The description of your instance profile.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of your instance profile.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of your instance profile.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of your instance profile.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of your instance profile.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of your instance profile.

*/ inline CreateInstanceProfileRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of your instance profile.

*/ inline CreateInstanceProfileRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of your instance profile.

*/ inline CreateInstanceProfileRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

When set to true, Device Farm removes app packages after a test * run. The default value is false for private devices.

*/ inline bool GetPackageCleanup() const{ return m_packageCleanup; } /** *

When set to true, Device Farm removes app packages after a test * run. The default value is false for private devices.

*/ inline bool PackageCleanupHasBeenSet() const { return m_packageCleanupHasBeenSet; } /** *

When set to true, Device Farm removes app packages after a test * run. The default value is false for private devices.

*/ inline void SetPackageCleanup(bool value) { m_packageCleanupHasBeenSet = true; m_packageCleanup = value; } /** *

When set to true, Device Farm removes app packages after a test * run. The default value is false for private devices.

*/ inline CreateInstanceProfileRequest& WithPackageCleanup(bool value) { SetPackageCleanup(value); return *this;} /** *

An array of strings that specifies the list of app packages that should not * be cleaned up from the device after a test run.

The list of packages is * considered only if you set packageCleanup to true.

*/ inline const Aws::Vector& GetExcludeAppPackagesFromCleanup() const{ return m_excludeAppPackagesFromCleanup; } /** *

An array of strings that specifies the list of app packages that should not * be cleaned up from the device after a test run.

The list of packages is * considered only if you set packageCleanup to true.

*/ inline bool ExcludeAppPackagesFromCleanupHasBeenSet() const { return m_excludeAppPackagesFromCleanupHasBeenSet; } /** *

An array of strings that specifies the list of app packages that should not * be cleaned up from the device after a test run.

The list of packages is * considered only if you set packageCleanup to true.

*/ inline void SetExcludeAppPackagesFromCleanup(const Aws::Vector& value) { m_excludeAppPackagesFromCleanupHasBeenSet = true; m_excludeAppPackagesFromCleanup = value; } /** *

An array of strings that specifies the list of app packages that should not * be cleaned up from the device after a test run.

The list of packages is * considered only if you set packageCleanup to true.

*/ inline void SetExcludeAppPackagesFromCleanup(Aws::Vector&& value) { m_excludeAppPackagesFromCleanupHasBeenSet = true; m_excludeAppPackagesFromCleanup = std::move(value); } /** *

An array of strings that specifies the list of app packages that should not * be cleaned up from the device after a test run.

The list of packages is * considered only if you set packageCleanup to true.

*/ inline CreateInstanceProfileRequest& WithExcludeAppPackagesFromCleanup(const Aws::Vector& value) { SetExcludeAppPackagesFromCleanup(value); return *this;} /** *

An array of strings that specifies the list of app packages that should not * be cleaned up from the device after a test run.

The list of packages is * considered only if you set packageCleanup to true.

*/ inline CreateInstanceProfileRequest& WithExcludeAppPackagesFromCleanup(Aws::Vector&& value) { SetExcludeAppPackagesFromCleanup(std::move(value)); return *this;} /** *

An array of strings that specifies the list of app packages that should not * be cleaned up from the device after a test run.

The list of packages is * considered only if you set packageCleanup to true.

*/ inline CreateInstanceProfileRequest& AddExcludeAppPackagesFromCleanup(const Aws::String& value) { m_excludeAppPackagesFromCleanupHasBeenSet = true; m_excludeAppPackagesFromCleanup.push_back(value); return *this; } /** *

An array of strings that specifies the list of app packages that should not * be cleaned up from the device after a test run.

The list of packages is * considered only if you set packageCleanup to true.

*/ inline CreateInstanceProfileRequest& AddExcludeAppPackagesFromCleanup(Aws::String&& value) { m_excludeAppPackagesFromCleanupHasBeenSet = true; m_excludeAppPackagesFromCleanup.push_back(std::move(value)); return *this; } /** *

An array of strings that specifies the list of app packages that should not * be cleaned up from the device after a test run.

The list of packages is * considered only if you set packageCleanup to true.

*/ inline CreateInstanceProfileRequest& AddExcludeAppPackagesFromCleanup(const char* value) { m_excludeAppPackagesFromCleanupHasBeenSet = true; m_excludeAppPackagesFromCleanup.push_back(value); return *this; } /** *

When set to true, Device Farm reboots the instance after a test * run. The default value is true.

*/ inline bool GetRebootAfterUse() const{ return m_rebootAfterUse; } /** *

When set to true, Device Farm reboots the instance after a test * run. The default value is true.

*/ inline bool RebootAfterUseHasBeenSet() const { return m_rebootAfterUseHasBeenSet; } /** *

When set to true, Device Farm reboots the instance after a test * run. The default value is true.

*/ inline void SetRebootAfterUse(bool value) { m_rebootAfterUseHasBeenSet = true; m_rebootAfterUse = value; } /** *

When set to true, Device Farm reboots the instance after a test * run. The default value is true.

*/ inline CreateInstanceProfileRequest& WithRebootAfterUse(bool value) { SetRebootAfterUse(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; bool m_packageCleanup; bool m_packageCleanupHasBeenSet = false; Aws::Vector m_excludeAppPackagesFromCleanup; bool m_excludeAppPackagesFromCleanupHasBeenSet = false; bool m_rebootAfterUse; bool m_rebootAfterUseHasBeenSet = false; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws