/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.devicefarm.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Represents the instance profile. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class InstanceProfile implements Serializable, Cloneable, StructuredPojo { /** ** The Amazon Resource Name (ARN) of the instance profile. *
*/ private String arn; /** *
* When set to true
, Device Farm removes app packages after a test run. The default value is
* false
for private devices.
*
* 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
.
*
* When set to true
, Device Farm reboots the instance after a test run. The default value is
* true
.
*
* The name of the instance profile. *
*/ private String name; /** ** The description of the instance profile. *
*/ private String description; /** ** The Amazon Resource Name (ARN) of the instance profile. *
* * @param arn * The Amazon Resource Name (ARN) of the instance profile. */ public void setArn(String arn) { this.arn = arn; } /** ** The Amazon Resource Name (ARN) of the instance profile. *
* * @return The Amazon Resource Name (ARN) of the instance profile. */ public String getArn() { return this.arn; } /** ** The Amazon Resource Name (ARN) of the instance profile. *
* * @param arn * The Amazon Resource Name (ARN) of the instance profile. * @return Returns a reference to this object so that method calls can be chained together. */ public InstanceProfile withArn(String arn) { setArn(arn); return this; } /** *
* 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 void setPackageCleanup(Boolean packageCleanup) {
this.packageCleanup = 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 Boolean getPackageCleanup() {
return this.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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public InstanceProfile withPackageCleanup(Boolean packageCleanup) {
setPackageCleanup(packageCleanup);
return this;
}
/**
*
* 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 Boolean isPackageCleanup() {
return this.packageCleanup;
}
/**
* * 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
* 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 java.util.ListpackageCleanup
to true
.
*
* The list of packages is considered only if you set
* 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
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setExcludeAppPackagesFromCleanup(java.util.Collection)} or
* {@link #withExcludeAppPackagesFromCleanup(java.util.Collection)} if you want to override the existing values.
* packageCleanup
to true
.
*/
public void setExcludeAppPackagesFromCleanup(java.util.CollectionpackageCleanup
to true
.
*
* The list of packages is considered only if you set
* 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
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public InstanceProfile withExcludeAppPackagesFromCleanup(String... excludeAppPackagesFromCleanup) {
if (this.excludeAppPackagesFromCleanup == null) {
setExcludeAppPackagesFromCleanup(new java.util.ArrayListpackageCleanup
to true
.
*
* The list of packages is considered only if you set
* When set to
* When set to
* When set to
* When set to
* The name of the instance profile.
*
* The name of the instance profile.
*
* The name of the instance profile.
*
* The description of the instance profile.
*
* The description of the instance profile.
*
* The description of the instance profile.
* packageCleanup
to true
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public InstanceProfile withExcludeAppPackagesFromCleanup(java.util.Collectiontrue
, 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 setRebootAfterUse(Boolean rebootAfterUse) {
this.rebootAfterUse = rebootAfterUse;
}
/**
* 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 Boolean getRebootAfterUse() {
return this.rebootAfterUse;
}
/**
* 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
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public InstanceProfile withRebootAfterUse(Boolean rebootAfterUse) {
setRebootAfterUse(rebootAfterUse);
return this;
}
/**
* 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 Boolean isRebootAfterUse() {
return this.rebootAfterUse;
}
/**
*