@Generated(value="software.amazon.awssdk:codegen") public final class InstanceProfile extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InstanceProfile.Builder,InstanceProfile>
Represents the instance profile.
| Modifier and Type | Class and Description |
|---|---|
static interface |
InstanceProfile.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The Amazon Resource Name (ARN) of the instance profile.
|
static InstanceProfile.Builder |
builder() |
String |
description()
The description of the instance profile.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<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.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasExcludeAppPackagesFromCleanup()
For responses, this returns true if the service returned a value for the ExcludeAppPackagesFromCleanup property.
|
int |
hashCode() |
String |
name()
The name of the instance profile.
|
Boolean |
packageCleanup()
When set to
true, Device Farm removes app packages after a test run. |
Boolean |
rebootAfterUse()
When set to
true, Device Farm reboots the instance after a test run. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends InstanceProfile.Builder> |
serializableBuilderClass() |
InstanceProfile.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String arn()
The Amazon Resource Name (ARN) of the instance profile.
public final Boolean packageCleanup()
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 final boolean hasExcludeAppPackagesFromCleanup()
isEmpty() method on the
property). This is useful because the SDK will never return a null collection or map, but you may need to
differentiate between the service returning nothing (or null) and the service returning an empty collection or
map. For requests, this returns true if a value for the property was specified in the request builder, and false
if a value was not specified.public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasExcludeAppPackagesFromCleanup() method.
The list of packages is considered only if you set packageCleanup to true.
public final Boolean rebootAfterUse()
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 final String name()
The name of the instance profile.
public final String description()
The description of the instance profile.
public InstanceProfile.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<InstanceProfile.Builder,InstanceProfile>public static InstanceProfile.Builder builder()
public static Class<? extends InstanceProfile.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.