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

com.amazonaws.services.datasync.model.CreateLocationObjectStorageRequest Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2017-2022 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.datasync.model;

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

import com.amazonaws.AmazonWebServiceRequest;

/**
 * 

* CreateLocationObjectStorageRequest *

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

* The name of the self-managed object storage server. This value is the IP address or Domain Name Service (DNS) * name of the object storage server. An agent uses this host name to mount the object storage server in a network. *

*/ private String serverHostname; /** *

* The port that your self-managed object storage server accepts inbound network traffic on. The server port is set * by default to TCP 80 (HTTP) or TCP 443 (HTTPS). You can specify a custom port if your self-managed object storage * server requires one. *

*/ private Integer serverPort; /** *

* The protocol that the object storage server uses to communicate. Valid values are HTTP or HTTPS. *

*/ private String serverProtocol; /** *

* The subdirectory in the self-managed object storage server that is used to read data from. *

*/ private String subdirectory; /** *

* The bucket on the self-managed object storage server that is used to read data from. *

*/ private String bucketName; /** *

* Optional. The access key is used if credentials are required to access the self-managed object storage server. If * your object storage requires a user name and password to authenticate, use AccessKey and * SecretKey to provide the user name and password, respectively. *

*/ private String accessKey; /** *

* Optional. The secret key is used if credentials are required to access the self-managed object storage server. If * your object storage requires a user name and password to authenticate, use AccessKey and * SecretKey to provide the user name and password, respectively. *

*/ private String secretKey; /** *

* The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server location. *

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

* The key-value pair that represents the tag that you want to add to the location. The value can be an empty * string. We recommend using tags to name your resources. *

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

* The name of the self-managed object storage server. This value is the IP address or Domain Name Service (DNS) * name of the object storage server. An agent uses this host name to mount the object storage server in a network. *

* * @param serverHostname * The name of the self-managed object storage server. This value is the IP address or Domain Name Service * (DNS) name of the object storage server. An agent uses this host name to mount the object storage server * in a network. */ public void setServerHostname(String serverHostname) { this.serverHostname = serverHostname; } /** *

* The name of the self-managed object storage server. This value is the IP address or Domain Name Service (DNS) * name of the object storage server. An agent uses this host name to mount the object storage server in a network. *

* * @return The name of the self-managed object storage server. This value is the IP address or Domain Name Service * (DNS) name of the object storage server. An agent uses this host name to mount the object storage server * in a network. */ public String getServerHostname() { return this.serverHostname; } /** *

* The name of the self-managed object storage server. This value is the IP address or Domain Name Service (DNS) * name of the object storage server. An agent uses this host name to mount the object storage server in a network. *

* * @param serverHostname * The name of the self-managed object storage server. This value is the IP address or Domain Name Service * (DNS) name of the object storage server. An agent uses this host name to mount the object storage server * in a network. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationObjectStorageRequest withServerHostname(String serverHostname) { setServerHostname(serverHostname); return this; } /** *

* The port that your self-managed object storage server accepts inbound network traffic on. The server port is set * by default to TCP 80 (HTTP) or TCP 443 (HTTPS). You can specify a custom port if your self-managed object storage * server requires one. *

* * @param serverPort * The port that your self-managed object storage server accepts inbound network traffic on. The server port * is set by default to TCP 80 (HTTP) or TCP 443 (HTTPS). You can specify a custom port if your self-managed * object storage server requires one. */ public void setServerPort(Integer serverPort) { this.serverPort = serverPort; } /** *

* The port that your self-managed object storage server accepts inbound network traffic on. The server port is set * by default to TCP 80 (HTTP) or TCP 443 (HTTPS). You can specify a custom port if your self-managed object storage * server requires one. *

* * @return The port that your self-managed object storage server accepts inbound network traffic on. The server port * is set by default to TCP 80 (HTTP) or TCP 443 (HTTPS). You can specify a custom port if your self-managed * object storage server requires one. */ public Integer getServerPort() { return this.serverPort; } /** *

* The port that your self-managed object storage server accepts inbound network traffic on. The server port is set * by default to TCP 80 (HTTP) or TCP 443 (HTTPS). You can specify a custom port if your self-managed object storage * server requires one. *

* * @param serverPort * The port that your self-managed object storage server accepts inbound network traffic on. The server port * is set by default to TCP 80 (HTTP) or TCP 443 (HTTPS). You can specify a custom port if your self-managed * object storage server requires one. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationObjectStorageRequest withServerPort(Integer serverPort) { setServerPort(serverPort); return this; } /** *

* The protocol that the object storage server uses to communicate. Valid values are HTTP or HTTPS. *

* * @param serverProtocol * The protocol that the object storage server uses to communicate. Valid values are HTTP or HTTPS. * @see ObjectStorageServerProtocol */ public void setServerProtocol(String serverProtocol) { this.serverProtocol = serverProtocol; } /** *

* The protocol that the object storage server uses to communicate. Valid values are HTTP or HTTPS. *

* * @return The protocol that the object storage server uses to communicate. Valid values are HTTP or HTTPS. * @see ObjectStorageServerProtocol */ public String getServerProtocol() { return this.serverProtocol; } /** *

* The protocol that the object storage server uses to communicate. Valid values are HTTP or HTTPS. *

* * @param serverProtocol * The protocol that the object storage server uses to communicate. Valid values are HTTP or HTTPS. * @return Returns a reference to this object so that method calls can be chained together. * @see ObjectStorageServerProtocol */ public CreateLocationObjectStorageRequest withServerProtocol(String serverProtocol) { setServerProtocol(serverProtocol); return this; } /** *

* The protocol that the object storage server uses to communicate. Valid values are HTTP or HTTPS. *

* * @param serverProtocol * The protocol that the object storage server uses to communicate. Valid values are HTTP or HTTPS. * @return Returns a reference to this object so that method calls can be chained together. * @see ObjectStorageServerProtocol */ public CreateLocationObjectStorageRequest withServerProtocol(ObjectStorageServerProtocol serverProtocol) { this.serverProtocol = serverProtocol.toString(); return this; } /** *

* The subdirectory in the self-managed object storage server that is used to read data from. *

* * @param subdirectory * The subdirectory in the self-managed object storage server that is used to read data from. */ public void setSubdirectory(String subdirectory) { this.subdirectory = subdirectory; } /** *

* The subdirectory in the self-managed object storage server that is used to read data from. *

* * @return The subdirectory in the self-managed object storage server that is used to read data from. */ public String getSubdirectory() { return this.subdirectory; } /** *

* The subdirectory in the self-managed object storage server that is used to read data from. *

* * @param subdirectory * The subdirectory in the self-managed object storage server that is used to read data from. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationObjectStorageRequest withSubdirectory(String subdirectory) { setSubdirectory(subdirectory); return this; } /** *

* The bucket on the self-managed object storage server that is used to read data from. *

* * @param bucketName * The bucket on the self-managed object storage server that is used to read data from. */ public void setBucketName(String bucketName) { this.bucketName = bucketName; } /** *

* The bucket on the self-managed object storage server that is used to read data from. *

* * @return The bucket on the self-managed object storage server that is used to read data from. */ public String getBucketName() { return this.bucketName; } /** *

* The bucket on the self-managed object storage server that is used to read data from. *

* * @param bucketName * The bucket on the self-managed object storage server that is used to read data from. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationObjectStorageRequest withBucketName(String bucketName) { setBucketName(bucketName); return this; } /** *

* Optional. The access key is used if credentials are required to access the self-managed object storage server. If * your object storage requires a user name and password to authenticate, use AccessKey and * SecretKey to provide the user name and password, respectively. *

* * @param accessKey * Optional. The access key is used if credentials are required to access the self-managed object storage * server. If your object storage requires a user name and password to authenticate, use * AccessKey and SecretKey to provide the user name and password, respectively. */ public void setAccessKey(String accessKey) { this.accessKey = accessKey; } /** *

* Optional. The access key is used if credentials are required to access the self-managed object storage server. If * your object storage requires a user name and password to authenticate, use AccessKey and * SecretKey to provide the user name and password, respectively. *

* * @return Optional. The access key is used if credentials are required to access the self-managed object storage * server. If your object storage requires a user name and password to authenticate, use * AccessKey and SecretKey to provide the user name and password, respectively. */ public String getAccessKey() { return this.accessKey; } /** *

* Optional. The access key is used if credentials are required to access the self-managed object storage server. If * your object storage requires a user name and password to authenticate, use AccessKey and * SecretKey to provide the user name and password, respectively. *

* * @param accessKey * Optional. The access key is used if credentials are required to access the self-managed object storage * server. If your object storage requires a user name and password to authenticate, use * AccessKey and SecretKey to provide the user name and password, respectively. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationObjectStorageRequest withAccessKey(String accessKey) { setAccessKey(accessKey); return this; } /** *

* Optional. The secret key is used if credentials are required to access the self-managed object storage server. If * your object storage requires a user name and password to authenticate, use AccessKey and * SecretKey to provide the user name and password, respectively. *

* * @param secretKey * Optional. The secret key is used if credentials are required to access the self-managed object storage * server. If your object storage requires a user name and password to authenticate, use * AccessKey and SecretKey to provide the user name and password, respectively. */ public void setSecretKey(String secretKey) { this.secretKey = secretKey; } /** *

* Optional. The secret key is used if credentials are required to access the self-managed object storage server. If * your object storage requires a user name and password to authenticate, use AccessKey and * SecretKey to provide the user name and password, respectively. *

* * @return Optional. The secret key is used if credentials are required to access the self-managed object storage * server. If your object storage requires a user name and password to authenticate, use * AccessKey and SecretKey to provide the user name and password, respectively. */ public String getSecretKey() { return this.secretKey; } /** *

* Optional. The secret key is used if credentials are required to access the self-managed object storage server. If * your object storage requires a user name and password to authenticate, use AccessKey and * SecretKey to provide the user name and password, respectively. *

* * @param secretKey * Optional. The secret key is used if credentials are required to access the self-managed object storage * server. If your object storage requires a user name and password to authenticate, use * AccessKey and SecretKey to provide the user name and password, respectively. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationObjectStorageRequest withSecretKey(String secretKey) { setSecretKey(secretKey); return this; } /** *

* The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server location. *

* * @return The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server * location. */ public java.util.List getAgentArns() { return agentArns; } /** *

* The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server location. *

* * @param agentArns * The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server * location. */ public void setAgentArns(java.util.Collection agentArns) { if (agentArns == null) { this.agentArns = null; return; } this.agentArns = new java.util.ArrayList(agentArns); } /** *

* The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server location. *

*

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

* * @param agentArns * The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server * location. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationObjectStorageRequest withAgentArns(String... agentArns) { if (this.agentArns == null) { setAgentArns(new java.util.ArrayList(agentArns.length)); } for (String ele : agentArns) { this.agentArns.add(ele); } return this; } /** *

* The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server location. *

* * @param agentArns * The Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server * location. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationObjectStorageRequest withAgentArns(java.util.Collection agentArns) { setAgentArns(agentArns); return this; } /** *

* The key-value pair that represents the tag that you want to add to the location. The value can be an empty * string. We recommend using tags to name your resources. *

* * @return The key-value pair that represents the tag that you want to add to the location. The value can be an * empty string. We recommend using tags to name your resources. */ public java.util.List getTags() { return tags; } /** *

* The key-value pair that represents the tag that you want to add to the location. The value can be an empty * string. We recommend using tags to name your resources. *

* * @param tags * The key-value pair that represents the tag that you want to add to the location. The value can be an empty * string. We recommend using tags to name your resources. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* The key-value pair that represents the tag that you want to add to the location. The value can be an empty * string. We recommend using tags to name your resources. *

*

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

* * @param tags * The key-value pair that represents the tag that you want to add to the location. The value can be an empty * string. We recommend using tags to name your resources. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationObjectStorageRequest withTags(TagListEntry... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (TagListEntry ele : tags) { this.tags.add(ele); } return this; } /** *

* The key-value pair that represents the tag that you want to add to the location. The value can be an empty * string. We recommend using tags to name your resources. *

* * @param tags * The key-value pair that represents the tag that you want to add to the location. The value can be an empty * string. We recommend using tags to name your resources. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationObjectStorageRequest withTags(java.util.Collection tags) { setTags(tags); 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 (getServerHostname() != null) sb.append("ServerHostname: ").append(getServerHostname()).append(","); if (getServerPort() != null) sb.append("ServerPort: ").append(getServerPort()).append(","); if (getServerProtocol() != null) sb.append("ServerProtocol: ").append(getServerProtocol()).append(","); if (getSubdirectory() != null) sb.append("Subdirectory: ").append(getSubdirectory()).append(","); if (getBucketName() != null) sb.append("BucketName: ").append(getBucketName()).append(","); if (getAccessKey() != null) sb.append("AccessKey: ").append(getAccessKey()).append(","); if (getSecretKey() != null) sb.append("SecretKey: ").append("***Sensitive Data Redacted***").append(","); if (getAgentArns() != null) sb.append("AgentArns: ").append(getAgentArns()).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 CreateLocationObjectStorageRequest == false) return false; CreateLocationObjectStorageRequest other = (CreateLocationObjectStorageRequest) obj; if (other.getServerHostname() == null ^ this.getServerHostname() == null) return false; if (other.getServerHostname() != null && other.getServerHostname().equals(this.getServerHostname()) == false) return false; if (other.getServerPort() == null ^ this.getServerPort() == null) return false; if (other.getServerPort() != null && other.getServerPort().equals(this.getServerPort()) == false) return false; if (other.getServerProtocol() == null ^ this.getServerProtocol() == null) return false; if (other.getServerProtocol() != null && other.getServerProtocol().equals(this.getServerProtocol()) == false) return false; if (other.getSubdirectory() == null ^ this.getSubdirectory() == null) return false; if (other.getSubdirectory() != null && other.getSubdirectory().equals(this.getSubdirectory()) == false) return false; if (other.getBucketName() == null ^ this.getBucketName() == null) return false; if (other.getBucketName() != null && other.getBucketName().equals(this.getBucketName()) == false) return false; if (other.getAccessKey() == null ^ this.getAccessKey() == null) return false; if (other.getAccessKey() != null && other.getAccessKey().equals(this.getAccessKey()) == false) return false; if (other.getSecretKey() == null ^ this.getSecretKey() == null) return false; if (other.getSecretKey() != null && other.getSecretKey().equals(this.getSecretKey()) == false) return false; if (other.getAgentArns() == null ^ this.getAgentArns() == null) return false; if (other.getAgentArns() != null && other.getAgentArns().equals(this.getAgentArns()) == 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 + ((getServerHostname() == null) ? 0 : getServerHostname().hashCode()); hashCode = prime * hashCode + ((getServerPort() == null) ? 0 : getServerPort().hashCode()); hashCode = prime * hashCode + ((getServerProtocol() == null) ? 0 : getServerProtocol().hashCode()); hashCode = prime * hashCode + ((getSubdirectory() == null) ? 0 : getSubdirectory().hashCode()); hashCode = prime * hashCode + ((getBucketName() == null) ? 0 : getBucketName().hashCode()); hashCode = prime * hashCode + ((getAccessKey() == null) ? 0 : getAccessKey().hashCode()); hashCode = prime * hashCode + ((getSecretKey() == null) ? 0 : getSecretKey().hashCode()); hashCode = prime * hashCode + ((getAgentArns() == null) ? 0 : getAgentArns().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public CreateLocationObjectStorageRequest clone() { return (CreateLocationObjectStorageRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy