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

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

Go to download

The AWS Java SDK for AWSDeadlineCloud module holds the client classes that are used for communicating with AWSDeadlineCloud Service

The newest version!
/*
 * 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 CreateStorageProfileRequest 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 display name of the storage profile. *

*/ private String displayName; /** *

* The farm ID of the farm to connect to the storage profile. *

*/ private String farmId; /** *

* File system paths to include in the storage profile. *

*/ private java.util.List fileSystemLocations; /** *

* The type of operating system (OS) for the storage profile. *

*/ private String osFamily; /** *

* 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 CreateStorageProfileRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** *

* The display name of the storage profile. *

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

* The display name of the storage profile. *

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

* The display name of the storage profile. *

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

* The farm ID of the farm to connect to the storage profile. *

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

* The farm ID of the farm to connect to the storage profile. *

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

* The farm ID of the farm to connect to the storage profile. *

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

* File system paths to include in the storage profile. *

* * @return File system paths to include in the storage profile. */ public java.util.List getFileSystemLocations() { return fileSystemLocations; } /** *

* File system paths to include in the storage profile. *

* * @param fileSystemLocations * File system paths to include in the storage profile. */ public void setFileSystemLocations(java.util.Collection fileSystemLocations) { if (fileSystemLocations == null) { this.fileSystemLocations = null; return; } this.fileSystemLocations = new java.util.ArrayList(fileSystemLocations); } /** *

* File system paths to include in the storage profile. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setFileSystemLocations(java.util.Collection)} or {@link #withFileSystemLocations(java.util.Collection)} * if you want to override the existing values. *

* * @param fileSystemLocations * File system paths to include in the storage profile. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStorageProfileRequest withFileSystemLocations(FileSystemLocation... fileSystemLocations) { if (this.fileSystemLocations == null) { setFileSystemLocations(new java.util.ArrayList(fileSystemLocations.length)); } for (FileSystemLocation ele : fileSystemLocations) { this.fileSystemLocations.add(ele); } return this; } /** *

* File system paths to include in the storage profile. *

* * @param fileSystemLocations * File system paths to include in the storage profile. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateStorageProfileRequest withFileSystemLocations(java.util.Collection fileSystemLocations) { setFileSystemLocations(fileSystemLocations); return this; } /** *

* The type of operating system (OS) for the storage profile. *

* * @param osFamily * The type of operating system (OS) for the storage profile. * @see StorageProfileOperatingSystemFamily */ public void setOsFamily(String osFamily) { this.osFamily = osFamily; } /** *

* The type of operating system (OS) for the storage profile. *

* * @return The type of operating system (OS) for the storage profile. * @see StorageProfileOperatingSystemFamily */ public String getOsFamily() { return this.osFamily; } /** *

* The type of operating system (OS) for the storage profile. *

* * @param osFamily * The type of operating system (OS) for the storage profile. * @return Returns a reference to this object so that method calls can be chained together. * @see StorageProfileOperatingSystemFamily */ public CreateStorageProfileRequest withOsFamily(String osFamily) { setOsFamily(osFamily); return this; } /** *

* The type of operating system (OS) for the storage profile. *

* * @param osFamily * The type of operating system (OS) for the storage profile. * @return Returns a reference to this object so that method calls can be chained together. * @see StorageProfileOperatingSystemFamily */ public CreateStorageProfileRequest withOsFamily(StorageProfileOperatingSystemFamily osFamily) { this.osFamily = osFamily.toString(); 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 (getDisplayName() != null) sb.append("DisplayName: ").append(getDisplayName()).append(","); if (getFarmId() != null) sb.append("FarmId: ").append(getFarmId()).append(","); if (getFileSystemLocations() != null) sb.append("FileSystemLocations: ").append("***Sensitive Data Redacted***").append(","); if (getOsFamily() != null) sb.append("OsFamily: ").append(getOsFamily()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateStorageProfileRequest == false) return false; CreateStorageProfileRequest other = (CreateStorageProfileRequest) obj; if (other.getClientToken() == null ^ this.getClientToken() == null) return false; if (other.getClientToken() != null && other.getClientToken().equals(this.getClientToken()) == 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.getFileSystemLocations() == null ^ this.getFileSystemLocations() == null) return false; if (other.getFileSystemLocations() != null && other.getFileSystemLocations().equals(this.getFileSystemLocations()) == false) return false; if (other.getOsFamily() == null ^ this.getOsFamily() == null) return false; if (other.getOsFamily() != null && other.getOsFamily().equals(this.getOsFamily()) == 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 + ((getDisplayName() == null) ? 0 : getDisplayName().hashCode()); hashCode = prime * hashCode + ((getFarmId() == null) ? 0 : getFarmId().hashCode()); hashCode = prime * hashCode + ((getFileSystemLocations() == null) ? 0 : getFileSystemLocations().hashCode()); hashCode = prime * hashCode + ((getOsFamily() == null) ? 0 : getOsFamily().hashCode()); return hashCode; } @Override public CreateStorageProfileRequest clone() { return (CreateStorageProfileRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy