@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceProfile extends Object implements Serializable, Cloneable, StructuredPojo
Represents the instance profile.
Constructor and Description |
---|
InstanceProfile() |
Modifier and Type | Method and Description |
---|---|
InstanceProfile |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the instance profile.
|
String |
getDescription()
The description of the instance profile.
|
List<String> |
getExcludeAppPackagesFromCleanup()
An array of strings containing the list of app packages that should not be cleaned up from the device after a
test run completes.
|
String |
getName()
The name of the instance profile.
|
Boolean |
getPackageCleanup()
When set to
true , Device Farm removes app packages after a test run. |
Boolean |
getRebootAfterUse()
When set to
true , Device Farm reboots the instance after a test run. |
int |
hashCode() |
Boolean |
isPackageCleanup()
When set to
true , Device Farm removes app packages after a test run. |
Boolean |
isRebootAfterUse()
When set to
true , Device Farm reboots the instance after a test run. |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the instance profile.
|
void |
setDescription(String description)
The description of the instance profile.
|
void |
setExcludeAppPackagesFromCleanup(Collection<String> excludeAppPackagesFromCleanup)
An array of strings containing the list of app packages that should not be cleaned up from the device after a
test run completes.
|
void |
setName(String name)
The name of the instance profile.
|
void |
setPackageCleanup(Boolean packageCleanup)
When set to
true , Device Farm removes app packages after a test run. |
void |
setRebootAfterUse(Boolean rebootAfterUse)
When set to
true , Device Farm reboots the instance after a test run. |
String |
toString()
Returns a string representation of this object.
|
InstanceProfile |
withArn(String arn)
The Amazon Resource Name (ARN) of the instance profile.
|
InstanceProfile |
withDescription(String description)
The description of the instance profile.
|
InstanceProfile |
withExcludeAppPackagesFromCleanup(Collection<String> excludeAppPackagesFromCleanup)
An array of strings containing the list of app packages that should not be cleaned up from the device after a
test run completes.
|
InstanceProfile |
withExcludeAppPackagesFromCleanup(String... excludeAppPackagesFromCleanup)
An array of strings containing the list of app packages that should not be cleaned up from the device after a
test run completes.
|
InstanceProfile |
withName(String name)
The name of the instance profile.
|
InstanceProfile |
withPackageCleanup(Boolean packageCleanup)
When set to
true , Device Farm removes app packages after a test run. |
InstanceProfile |
withRebootAfterUse(Boolean rebootAfterUse)
When set to
true , Device Farm reboots the instance after a test run. |
public void setArn(String arn)
The Amazon Resource Name (ARN) of the instance profile.
arn
- The Amazon Resource Name (ARN) of the instance profile.public String getArn()
The Amazon Resource Name (ARN) of the instance profile.
public InstanceProfile withArn(String arn)
The Amazon Resource Name (ARN) of the instance profile.
arn
- The Amazon Resource Name (ARN) of the instance profile.public void setPackageCleanup(Boolean packageCleanup)
When set to true
, Device Farm removes app packages after a test run. The default value is
false
for private devices.
packageCleanup
- When set to true
, Device Farm removes app packages after a test run. The default value is
false
for private devices.public Boolean getPackageCleanup()
When set to true
, Device Farm removes app packages after a test run. The default value is
false
for private devices.
true
, Device Farm removes app packages after a test run. The default value is
false
for private devices.public InstanceProfile withPackageCleanup(Boolean packageCleanup)
When set to true
, Device Farm removes app packages after a test run. The default value is
false
for private devices.
packageCleanup
- When set to true
, Device Farm removes app packages after a test run. The default value is
false
for private devices.public Boolean isPackageCleanup()
When set to true
, Device Farm removes app packages after a test run. The default value is
false
for private devices.
true
, Device Farm removes app packages after a test run. The default value is
false
for private devices.public List<String> getExcludeAppPackagesFromCleanup()
An array of strings containing the list of app packages that should not be cleaned up from the device after a test run completes.
The list of packages is considered only if you set packageCleanup
to true
.
The list of packages is considered only if you set packageCleanup
to true
.
public void setExcludeAppPackagesFromCleanup(Collection<String> excludeAppPackagesFromCleanup)
An array of strings containing the list of app packages that should not be cleaned up from the device after a test run completes.
The list of packages is considered only if you set packageCleanup
to true
.
excludeAppPackagesFromCleanup
- An array of strings containing the list of app packages that should not be cleaned up from the device
after a test run completes.
The list of packages is considered only if you set packageCleanup
to true
.
public InstanceProfile withExcludeAppPackagesFromCleanup(String... excludeAppPackagesFromCleanup)
An array of strings containing the list of app packages that should not be cleaned up from the device after a test run completes.
The list of packages is considered only if you set packageCleanup
to true
.
NOTE: This method appends the values to the existing list (if any). Use
setExcludeAppPackagesFromCleanup(java.util.Collection)
or
withExcludeAppPackagesFromCleanup(java.util.Collection)
if you want to override the existing values.
excludeAppPackagesFromCleanup
- An array of strings containing the list of app packages that should not be cleaned up from the device
after a test run completes.
The list of packages is considered only if you set packageCleanup
to true
.
public InstanceProfile withExcludeAppPackagesFromCleanup(Collection<String> excludeAppPackagesFromCleanup)
An array of strings containing the list of app packages that should not be cleaned up from the device after a test run completes.
The list of packages is considered only if you set packageCleanup
to true
.
excludeAppPackagesFromCleanup
- An array of strings containing the list of app packages that should not be cleaned up from the device
after a test run completes.
The list of packages is considered only if you set packageCleanup
to true
.
public void setRebootAfterUse(Boolean rebootAfterUse)
When set to true
, Device Farm reboots the instance after a test run. The default value is
true
.
rebootAfterUse
- When set to true
, Device Farm reboots the instance after a test run. The default value is
true
.public Boolean getRebootAfterUse()
When set to true
, Device Farm reboots the instance after a test run. The default value is
true
.
true
, Device Farm reboots the instance after a test run. The default value is
true
.public InstanceProfile withRebootAfterUse(Boolean rebootAfterUse)
When set to true
, Device Farm reboots the instance after a test run. The default value is
true
.
rebootAfterUse
- When set to true
, Device Farm reboots the instance after a test run. The default value is
true
.public Boolean isRebootAfterUse()
When set to true
, Device Farm reboots the instance after a test run. The default value is
true
.
true
, Device Farm reboots the instance after a test run. The default value is
true
.public void setName(String name)
The name of the instance profile.
name
- The name of the instance profile.public String getName()
The name of the instance profile.
public InstanceProfile withName(String name)
The name of the instance profile.
name
- The name of the instance profile.public void setDescription(String description)
The description of the instance profile.
description
- The description of the instance profile.public String getDescription()
The description of the instance profile.
public InstanceProfile withDescription(String description)
The description of the instance profile.
description
- The description of the instance profile.public String toString()
toString
in class Object
Object.toString()
public InstanceProfile clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.