All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.deadline.model.CreateFleetRequest Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 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.deadline.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 * @see AWS API
 *      Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateFleetRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The unique token which the server uses to recognize retries of the same request. *

*/ private String clientToken; /** *

* The configuration settings for the fleet. Customer managed fleets are self-managed. Service managed Amazon EC2 * fleets are managed by Deadline Cloud. *

*/ private FleetConfiguration configuration; /** *

* The description of the fleet. *

*/ private String description; /** *

* The display name of the fleet. *

*/ private String displayName; /** *

* The farm ID of the farm to connect to the fleet. *

*/ private String farmId; /** *

* The maximum number of workers for the fleet. *

*/ private Integer maxWorkerCount; /** *

* The minimum number of workers for the fleet. *

*/ private Integer minWorkerCount; /** *

* The IAM role ARN for the role that the fleet's workers will use. *

*/ private String roleArn; /** *

* Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can be * empty strings. *

*/ private java.util.Map tags; /** *

* The unique token which the server uses to recognize retries of the same request. *

* * @param clientToken * The unique token which the server uses to recognize retries of the same request. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** *

* The unique token which the server uses to recognize retries of the same request. *

* * @return The unique token which the server uses to recognize retries of the same request. */ public String getClientToken() { return this.clientToken; } /** *

* The unique token which the server uses to recognize retries of the same request. *

* * @param clientToken * The unique token which the server uses to recognize retries of the same request. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** *

* The configuration settings for the fleet. Customer managed fleets are self-managed. Service managed Amazon EC2 * fleets are managed by Deadline Cloud. *

* * @param configuration * The configuration settings for the fleet. Customer managed fleets are self-managed. Service managed Amazon * EC2 fleets are managed by Deadline Cloud. */ public void setConfiguration(FleetConfiguration configuration) { this.configuration = configuration; } /** *

* The configuration settings for the fleet. Customer managed fleets are self-managed. Service managed Amazon EC2 * fleets are managed by Deadline Cloud. *

* * @return The configuration settings for the fleet. Customer managed fleets are self-managed. Service managed * Amazon EC2 fleets are managed by Deadline Cloud. */ public FleetConfiguration getConfiguration() { return this.configuration; } /** *

* The configuration settings for the fleet. Customer managed fleets are self-managed. Service managed Amazon EC2 * fleets are managed by Deadline Cloud. *

* * @param configuration * The configuration settings for the fleet. Customer managed fleets are self-managed. Service managed Amazon * EC2 fleets are managed by Deadline Cloud. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withConfiguration(FleetConfiguration configuration) { setConfiguration(configuration); return this; } /** *

* The description of the fleet. *

* * @param description * The description of the fleet. */ public void setDescription(String description) { this.description = description; } /** *

* The description of the fleet. *

* * @return The description of the fleet. */ public String getDescription() { return this.description; } /** *

* The description of the fleet. *

* * @param description * The description of the fleet. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withDescription(String description) { setDescription(description); return this; } /** *

* The display name of the fleet. *

* * @param displayName * The display name of the fleet. */ public void setDisplayName(String displayName) { this.displayName = displayName; } /** *

* The display name of the fleet. *

* * @return The display name of the fleet. */ public String getDisplayName() { return this.displayName; } /** *

* The display name of the fleet. *

* * @param displayName * The display name of the fleet. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withDisplayName(String displayName) { setDisplayName(displayName); return this; } /** *

* The farm ID of the farm to connect to the fleet. *

* * @param farmId * The farm ID of the farm to connect to the fleet. */ public void setFarmId(String farmId) { this.farmId = farmId; } /** *

* The farm ID of the farm to connect to the fleet. *

* * @return The farm ID of the farm to connect to the fleet. */ public String getFarmId() { return this.farmId; } /** *

* The farm ID of the farm to connect to the fleet. *

* * @param farmId * The farm ID of the farm to connect to the fleet. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withFarmId(String farmId) { setFarmId(farmId); return this; } /** *

* The maximum number of workers for the fleet. *

* * @param maxWorkerCount * The maximum number of workers for the fleet. */ public void setMaxWorkerCount(Integer maxWorkerCount) { this.maxWorkerCount = maxWorkerCount; } /** *

* The maximum number of workers for the fleet. *

* * @return The maximum number of workers for the fleet. */ public Integer getMaxWorkerCount() { return this.maxWorkerCount; } /** *

* The maximum number of workers for the fleet. *

* * @param maxWorkerCount * The maximum number of workers for the fleet. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withMaxWorkerCount(Integer maxWorkerCount) { setMaxWorkerCount(maxWorkerCount); return this; } /** *

* The minimum number of workers for the fleet. *

* * @param minWorkerCount * The minimum number of workers for the fleet. */ public void setMinWorkerCount(Integer minWorkerCount) { this.minWorkerCount = minWorkerCount; } /** *

* The minimum number of workers for the fleet. *

* * @return The minimum number of workers for the fleet. */ public Integer getMinWorkerCount() { return this.minWorkerCount; } /** *

* The minimum number of workers for the fleet. *

* * @param minWorkerCount * The minimum number of workers for the fleet. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withMinWorkerCount(Integer minWorkerCount) { setMinWorkerCount(minWorkerCount); return this; } /** *

* The IAM role ARN for the role that the fleet's workers will use. *

* * @param roleArn * The IAM role ARN for the role that the fleet's workers will use. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** *

* The IAM role ARN for the role that the fleet's workers will use. *

* * @return The IAM role ARN for the role that the fleet's workers will use. */ public String getRoleArn() { return this.roleArn; } /** *

* The IAM role ARN for the role that the fleet's workers will use. *

* * @param roleArn * The IAM role ARN for the role that the fleet's workers will use. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** *

* Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can be * empty strings. *

* * @return Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can * be empty strings. */ public java.util.Map getTags() { return tags; } /** *

* Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can be * empty strings. *

* * @param tags * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can * be empty strings. */ public void setTags(java.util.Map tags) { this.tags = tags; } /** *

* Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can be * empty strings. *

* * @param tags * Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can * be empty strings. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see CreateFleetRequest#withTags * @returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest addTagsEntry(String key, String value) { if (null == this.tags) { this.tags = new java.util.HashMap(); } if (this.tags.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.tags.put(key, value); return this; } /** * Removes all the entries added into Tags. * * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFleetRequest clearTagsEntries() { this.tags = null; return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getClientToken() != null) sb.append("ClientToken: ").append(getClientToken()).append(","); if (getConfiguration() != null) sb.append("Configuration: ").append(getConfiguration()).append(","); if (getDescription() != null) sb.append("Description: ").append("***Sensitive Data Redacted***").append(","); if (getDisplayName() != null) sb.append("DisplayName: ").append(getDisplayName()).append(","); if (getFarmId() != null) sb.append("FarmId: ").append(getFarmId()).append(","); if (getMaxWorkerCount() != null) sb.append("MaxWorkerCount: ").append(getMaxWorkerCount()).append(","); if (getMinWorkerCount() != null) sb.append("MinWorkerCount: ").append(getMinWorkerCount()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateFleetRequest == false) return false; CreateFleetRequest other = (CreateFleetRequest) obj; if (other.getClientToken() == null ^ this.getClientToken() == null) return false; if (other.getClientToken() != null && other.getClientToken().equals(this.getClientToken()) == false) return false; if (other.getConfiguration() == null ^ this.getConfiguration() == null) return false; if (other.getConfiguration() != null && other.getConfiguration().equals(this.getConfiguration()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getDisplayName() == null ^ this.getDisplayName() == null) return false; if (other.getDisplayName() != null && other.getDisplayName().equals(this.getDisplayName()) == false) return false; if (other.getFarmId() == null ^ this.getFarmId() == null) return false; if (other.getFarmId() != null && other.getFarmId().equals(this.getFarmId()) == false) return false; if (other.getMaxWorkerCount() == null ^ this.getMaxWorkerCount() == null) return false; if (other.getMaxWorkerCount() != null && other.getMaxWorkerCount().equals(this.getMaxWorkerCount()) == false) return false; if (other.getMinWorkerCount() == null ^ this.getMinWorkerCount() == null) return false; if (other.getMinWorkerCount() != null && other.getMinWorkerCount().equals(this.getMinWorkerCount()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); hashCode = prime * hashCode + ((getConfiguration() == null) ? 0 : getConfiguration().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getDisplayName() == null) ? 0 : getDisplayName().hashCode()); hashCode = prime * hashCode + ((getFarmId() == null) ? 0 : getFarmId().hashCode()); hashCode = prime * hashCode + ((getMaxWorkerCount() == null) ? 0 : getMaxWorkerCount().hashCode()); hashCode = prime * hashCode + ((getMinWorkerCount() == null) ? 0 : getMinWorkerCount().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public CreateFleetRequest clone() { return (CreateFleetRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy