254 lines
10 KiB
C++
254 lines
10 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
|
|
#include <aws/devicefarm/DeviceFarmRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace DeviceFarm
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_DEVICEFARM_API CreateInstanceProfileRequest : public DeviceFarmRequest
|
|
{
|
|
public:
|
|
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::String SerializePayload() const override;
|
|
|
|
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
|
|
|
|
|
|
/**
|
|
* <p>The name of your instance profile.</p>
|
|
*/
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|
|
|
/**
|
|
* <p>The name of your instance profile.</p>
|
|
*/
|
|
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The name of your instance profile.</p>
|
|
*/
|
|
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
|
|
|
/**
|
|
* <p>The name of your instance profile.</p>
|
|
*/
|
|
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of your instance profile.</p>
|
|
*/
|
|
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of your instance profile.</p>
|
|
*/
|
|
inline CreateInstanceProfileRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of your instance profile.</p>
|
|
*/
|
|
inline CreateInstanceProfileRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of your instance profile.</p>
|
|
*/
|
|
inline CreateInstanceProfileRequest& WithName(const char* value) { SetName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The description of your instance profile.</p>
|
|
*/
|
|
inline const Aws::String& GetDescription() const{ return m_description; }
|
|
|
|
/**
|
|
* <p>The description of your instance profile.</p>
|
|
*/
|
|
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The description of your instance profile.</p>
|
|
*/
|
|
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
|
|
|
|
/**
|
|
* <p>The description of your instance profile.</p>
|
|
*/
|
|
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
|
|
|
|
/**
|
|
* <p>The description of your instance profile.</p>
|
|
*/
|
|
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
|
|
|
|
/**
|
|
* <p>The description of your instance profile.</p>
|
|
*/
|
|
inline CreateInstanceProfileRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
|
|
|
/**
|
|
* <p>The description of your instance profile.</p>
|
|
*/
|
|
inline CreateInstanceProfileRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The description of your instance profile.</p>
|
|
*/
|
|
inline CreateInstanceProfileRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>When set to <code>true</code>, Device Farm removes app packages after a test
|
|
* run. The default value is <code>false</code> for private devices.</p>
|
|
*/
|
|
inline bool GetPackageCleanup() const{ return m_packageCleanup; }
|
|
|
|
/**
|
|
* <p>When set to <code>true</code>, Device Farm removes app packages after a test
|
|
* run. The default value is <code>false</code> for private devices.</p>
|
|
*/
|
|
inline bool PackageCleanupHasBeenSet() const { return m_packageCleanupHasBeenSet; }
|
|
|
|
/**
|
|
* <p>When set to <code>true</code>, Device Farm removes app packages after a test
|
|
* run. The default value is <code>false</code> for private devices.</p>
|
|
*/
|
|
inline void SetPackageCleanup(bool value) { m_packageCleanupHasBeenSet = true; m_packageCleanup = value; }
|
|
|
|
/**
|
|
* <p>When set to <code>true</code>, Device Farm removes app packages after a test
|
|
* run. The default value is <code>false</code> for private devices.</p>
|
|
*/
|
|
inline CreateInstanceProfileRequest& WithPackageCleanup(bool value) { SetPackageCleanup(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>An array of strings that specifies the list of app packages that should not
|
|
* be cleaned up from the device after a test run.</p> <p>The list of packages is
|
|
* considered only if you set <code>packageCleanup</code> to <code>true</code>.</p>
|
|
*/
|
|
inline const Aws::Vector<Aws::String>& GetExcludeAppPackagesFromCleanup() const{ return m_excludeAppPackagesFromCleanup; }
|
|
|
|
/**
|
|
* <p>An array of strings that specifies the list of app packages that should not
|
|
* be cleaned up from the device after a test run.</p> <p>The list of packages is
|
|
* considered only if you set <code>packageCleanup</code> to <code>true</code>.</p>
|
|
*/
|
|
inline bool ExcludeAppPackagesFromCleanupHasBeenSet() const { return m_excludeAppPackagesFromCleanupHasBeenSet; }
|
|
|
|
/**
|
|
* <p>An array of strings that specifies the list of app packages that should not
|
|
* be cleaned up from the device after a test run.</p> <p>The list of packages is
|
|
* considered only if you set <code>packageCleanup</code> to <code>true</code>.</p>
|
|
*/
|
|
inline void SetExcludeAppPackagesFromCleanup(const Aws::Vector<Aws::String>& value) { m_excludeAppPackagesFromCleanupHasBeenSet = true; m_excludeAppPackagesFromCleanup = value; }
|
|
|
|
/**
|
|
* <p>An array of strings that specifies the list of app packages that should not
|
|
* be cleaned up from the device after a test run.</p> <p>The list of packages is
|
|
* considered only if you set <code>packageCleanup</code> to <code>true</code>.</p>
|
|
*/
|
|
inline void SetExcludeAppPackagesFromCleanup(Aws::Vector<Aws::String>&& value) { m_excludeAppPackagesFromCleanupHasBeenSet = true; m_excludeAppPackagesFromCleanup = std::move(value); }
|
|
|
|
/**
|
|
* <p>An array of strings that specifies the list of app packages that should not
|
|
* be cleaned up from the device after a test run.</p> <p>The list of packages is
|
|
* considered only if you set <code>packageCleanup</code> to <code>true</code>.</p>
|
|
*/
|
|
inline CreateInstanceProfileRequest& WithExcludeAppPackagesFromCleanup(const Aws::Vector<Aws::String>& value) { SetExcludeAppPackagesFromCleanup(value); return *this;}
|
|
|
|
/**
|
|
* <p>An array of strings that specifies the list of app packages that should not
|
|
* be cleaned up from the device after a test run.</p> <p>The list of packages is
|
|
* considered only if you set <code>packageCleanup</code> to <code>true</code>.</p>
|
|
*/
|
|
inline CreateInstanceProfileRequest& WithExcludeAppPackagesFromCleanup(Aws::Vector<Aws::String>&& value) { SetExcludeAppPackagesFromCleanup(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>An array of strings that specifies the list of app packages that should not
|
|
* be cleaned up from the device after a test run.</p> <p>The list of packages is
|
|
* considered only if you set <code>packageCleanup</code> to <code>true</code>.</p>
|
|
*/
|
|
inline CreateInstanceProfileRequest& AddExcludeAppPackagesFromCleanup(const Aws::String& value) { m_excludeAppPackagesFromCleanupHasBeenSet = true; m_excludeAppPackagesFromCleanup.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>An array of strings that specifies the list of app packages that should not
|
|
* be cleaned up from the device after a test run.</p> <p>The list of packages is
|
|
* considered only if you set <code>packageCleanup</code> to <code>true</code>.</p>
|
|
*/
|
|
inline CreateInstanceProfileRequest& AddExcludeAppPackagesFromCleanup(Aws::String&& value) { m_excludeAppPackagesFromCleanupHasBeenSet = true; m_excludeAppPackagesFromCleanup.push_back(std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>An array of strings that specifies the list of app packages that should not
|
|
* be cleaned up from the device after a test run.</p> <p>The list of packages is
|
|
* considered only if you set <code>packageCleanup</code> to <code>true</code>.</p>
|
|
*/
|
|
inline CreateInstanceProfileRequest& AddExcludeAppPackagesFromCleanup(const char* value) { m_excludeAppPackagesFromCleanupHasBeenSet = true; m_excludeAppPackagesFromCleanup.push_back(value); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>When set to <code>true</code>, Device Farm reboots the instance after a test
|
|
* run. The default value is <code>true</code>.</p>
|
|
*/
|
|
inline bool GetRebootAfterUse() const{ return m_rebootAfterUse; }
|
|
|
|
/**
|
|
* <p>When set to <code>true</code>, Device Farm reboots the instance after a test
|
|
* run. The default value is <code>true</code>.</p>
|
|
*/
|
|
inline bool RebootAfterUseHasBeenSet() const { return m_rebootAfterUseHasBeenSet; }
|
|
|
|
/**
|
|
* <p>When set to <code>true</code>, Device Farm reboots the instance after a test
|
|
* run. The default value is <code>true</code>.</p>
|
|
*/
|
|
inline void SetRebootAfterUse(bool value) { m_rebootAfterUseHasBeenSet = true; m_rebootAfterUse = value; }
|
|
|
|
/**
|
|
* <p>When set to <code>true</code>, Device Farm reboots the instance after a test
|
|
* run. The default value is <code>true</code>.</p>
|
|
*/
|
|
inline CreateInstanceProfileRequest& WithRebootAfterUse(bool value) { SetRebootAfterUse(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_name;
|
|
bool m_nameHasBeenSet;
|
|
|
|
Aws::String m_description;
|
|
bool m_descriptionHasBeenSet;
|
|
|
|
bool m_packageCleanup;
|
|
bool m_packageCleanupHasBeenSet;
|
|
|
|
Aws::Vector<Aws::String> m_excludeAppPackagesFromCleanup;
|
|
bool m_excludeAppPackagesFromCleanupHasBeenSet;
|
|
|
|
bool m_rebootAfterUse;
|
|
bool m_rebootAfterUseHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace DeviceFarm
|
|
} // namespace Aws
|