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

com.amazonaws.services.datasync.model.CreateLocationAzureBlobRequest 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.778
Show 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.datasync.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 CreateLocationAzureBlobRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* Specifies the URL of the Azure Blob Storage container involved in your transfer. *

*/ private String containerUrl; /** *

* Specifies the authentication method DataSync uses to access your Azure Blob Storage. DataSync can access blob * storage using a shared access signature (SAS). *

*/ private String authenticationType; /** *

* Specifies the SAS configuration that allows DataSync to access your Azure Blob Storage. *

*/ private AzureBlobSasConfiguration sasConfiguration; /** *

* Specifies the type of blob that you want your objects or files to be when transferring them into Azure Blob * Storage. Currently, DataSync only supports moving data into Azure Blob Storage as block blobs. For more * information on blob types, see the Azure Blob Storage documentation. *

*/ private String blobType; /** *

* Specifies the access tier that you want your objects or files transferred into. This only applies when using the * location as a transfer destination. For more information, see Access tiers. *

*/ private String accessTier; /** *

* Specifies path segments if you want to limit your transfer to a virtual directory in your container (for example, * /my/images). *

*/ private String subdirectory; /** *

* Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect with your Azure Blob Storage * container. *

*

* You can specify more than one agent. For more information, see Using multiple agents for your * transfer. *

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

* Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least a name tag for your transfer location. *

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

* Specifies the URL of the Azure Blob Storage container involved in your transfer. *

* * @param containerUrl * Specifies the URL of the Azure Blob Storage container involved in your transfer. */ public void setContainerUrl(String containerUrl) { this.containerUrl = containerUrl; } /** *

* Specifies the URL of the Azure Blob Storage container involved in your transfer. *

* * @return Specifies the URL of the Azure Blob Storage container involved in your transfer. */ public String getContainerUrl() { return this.containerUrl; } /** *

* Specifies the URL of the Azure Blob Storage container involved in your transfer. *

* * @param containerUrl * Specifies the URL of the Azure Blob Storage container involved in your transfer. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationAzureBlobRequest withContainerUrl(String containerUrl) { setContainerUrl(containerUrl); return this; } /** *

* Specifies the authentication method DataSync uses to access your Azure Blob Storage. DataSync can access blob * storage using a shared access signature (SAS). *

* * @param authenticationType * Specifies the authentication method DataSync uses to access your Azure Blob Storage. DataSync can access * blob storage using a shared access signature (SAS). * @see AzureBlobAuthenticationType */ public void setAuthenticationType(String authenticationType) { this.authenticationType = authenticationType; } /** *

* Specifies the authentication method DataSync uses to access your Azure Blob Storage. DataSync can access blob * storage using a shared access signature (SAS). *

* * @return Specifies the authentication method DataSync uses to access your Azure Blob Storage. DataSync can access * blob storage using a shared access signature (SAS). * @see AzureBlobAuthenticationType */ public String getAuthenticationType() { return this.authenticationType; } /** *

* Specifies the authentication method DataSync uses to access your Azure Blob Storage. DataSync can access blob * storage using a shared access signature (SAS). *

* * @param authenticationType * Specifies the authentication method DataSync uses to access your Azure Blob Storage. DataSync can access * blob storage using a shared access signature (SAS). * @return Returns a reference to this object so that method calls can be chained together. * @see AzureBlobAuthenticationType */ public CreateLocationAzureBlobRequest withAuthenticationType(String authenticationType) { setAuthenticationType(authenticationType); return this; } /** *

* Specifies the authentication method DataSync uses to access your Azure Blob Storage. DataSync can access blob * storage using a shared access signature (SAS). *

* * @param authenticationType * Specifies the authentication method DataSync uses to access your Azure Blob Storage. DataSync can access * blob storage using a shared access signature (SAS). * @return Returns a reference to this object so that method calls can be chained together. * @see AzureBlobAuthenticationType */ public CreateLocationAzureBlobRequest withAuthenticationType(AzureBlobAuthenticationType authenticationType) { this.authenticationType = authenticationType.toString(); return this; } /** *

* Specifies the SAS configuration that allows DataSync to access your Azure Blob Storage. *

* * @param sasConfiguration * Specifies the SAS configuration that allows DataSync to access your Azure Blob Storage. */ public void setSasConfiguration(AzureBlobSasConfiguration sasConfiguration) { this.sasConfiguration = sasConfiguration; } /** *

* Specifies the SAS configuration that allows DataSync to access your Azure Blob Storage. *

* * @return Specifies the SAS configuration that allows DataSync to access your Azure Blob Storage. */ public AzureBlobSasConfiguration getSasConfiguration() { return this.sasConfiguration; } /** *

* Specifies the SAS configuration that allows DataSync to access your Azure Blob Storage. *

* * @param sasConfiguration * Specifies the SAS configuration that allows DataSync to access your Azure Blob Storage. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationAzureBlobRequest withSasConfiguration(AzureBlobSasConfiguration sasConfiguration) { setSasConfiguration(sasConfiguration); return this; } /** *

* Specifies the type of blob that you want your objects or files to be when transferring them into Azure Blob * Storage. Currently, DataSync only supports moving data into Azure Blob Storage as block blobs. For more * information on blob types, see the Azure Blob Storage documentation. *

* * @param blobType * Specifies the type of blob that you want your objects or files to be when transferring them into Azure * Blob Storage. Currently, DataSync only supports moving data into Azure Blob Storage as block blobs. For * more information on blob types, see the Azure Blob Storage documentation. * @see AzureBlobType */ public void setBlobType(String blobType) { this.blobType = blobType; } /** *

* Specifies the type of blob that you want your objects or files to be when transferring them into Azure Blob * Storage. Currently, DataSync only supports moving data into Azure Blob Storage as block blobs. For more * information on blob types, see the Azure Blob Storage documentation. *

* * @return Specifies the type of blob that you want your objects or files to be when transferring them into Azure * Blob Storage. Currently, DataSync only supports moving data into Azure Blob Storage as block blobs. For * more information on blob types, see the Azure Blob Storage documentation. * @see AzureBlobType */ public String getBlobType() { return this.blobType; } /** *

* Specifies the type of blob that you want your objects or files to be when transferring them into Azure Blob * Storage. Currently, DataSync only supports moving data into Azure Blob Storage as block blobs. For more * information on blob types, see the Azure Blob Storage documentation. *

* * @param blobType * Specifies the type of blob that you want your objects or files to be when transferring them into Azure * Blob Storage. Currently, DataSync only supports moving data into Azure Blob Storage as block blobs. For * more information on blob types, see the Azure Blob Storage documentation. * @return Returns a reference to this object so that method calls can be chained together. * @see AzureBlobType */ public CreateLocationAzureBlobRequest withBlobType(String blobType) { setBlobType(blobType); return this; } /** *

* Specifies the type of blob that you want your objects or files to be when transferring them into Azure Blob * Storage. Currently, DataSync only supports moving data into Azure Blob Storage as block blobs. For more * information on blob types, see the Azure Blob Storage documentation. *

* * @param blobType * Specifies the type of blob that you want your objects or files to be when transferring them into Azure * Blob Storage. Currently, DataSync only supports moving data into Azure Blob Storage as block blobs. For * more information on blob types, see the Azure Blob Storage documentation. * @return Returns a reference to this object so that method calls can be chained together. * @see AzureBlobType */ public CreateLocationAzureBlobRequest withBlobType(AzureBlobType blobType) { this.blobType = blobType.toString(); return this; } /** *

* Specifies the access tier that you want your objects or files transferred into. This only applies when using the * location as a transfer destination. For more information, see Access tiers. *

* * @param accessTier * Specifies the access tier that you want your objects or files transferred into. This only applies when * using the location as a transfer destination. For more information, see Access tiers. * @see AzureAccessTier */ public void setAccessTier(String accessTier) { this.accessTier = accessTier; } /** *

* Specifies the access tier that you want your objects or files transferred into. This only applies when using the * location as a transfer destination. For more information, see Access tiers. *

* * @return Specifies the access tier that you want your objects or files transferred into. This only applies when * using the location as a transfer destination. For more information, see Access tiers. * @see AzureAccessTier */ public String getAccessTier() { return this.accessTier; } /** *

* Specifies the access tier that you want your objects or files transferred into. This only applies when using the * location as a transfer destination. For more information, see Access tiers. *

* * @param accessTier * Specifies the access tier that you want your objects or files transferred into. This only applies when * using the location as a transfer destination. For more information, see Access tiers. * @return Returns a reference to this object so that method calls can be chained together. * @see AzureAccessTier */ public CreateLocationAzureBlobRequest withAccessTier(String accessTier) { setAccessTier(accessTier); return this; } /** *

* Specifies the access tier that you want your objects or files transferred into. This only applies when using the * location as a transfer destination. For more information, see Access tiers. *

* * @param accessTier * Specifies the access tier that you want your objects or files transferred into. This only applies when * using the location as a transfer destination. For more information, see Access tiers. * @return Returns a reference to this object so that method calls can be chained together. * @see AzureAccessTier */ public CreateLocationAzureBlobRequest withAccessTier(AzureAccessTier accessTier) { this.accessTier = accessTier.toString(); return this; } /** *

* Specifies path segments if you want to limit your transfer to a virtual directory in your container (for example, * /my/images). *

* * @param subdirectory * Specifies path segments if you want to limit your transfer to a virtual directory in your container (for * example, /my/images). */ public void setSubdirectory(String subdirectory) { this.subdirectory = subdirectory; } /** *

* Specifies path segments if you want to limit your transfer to a virtual directory in your container (for example, * /my/images). *

* * @return Specifies path segments if you want to limit your transfer to a virtual directory in your container (for * example, /my/images). */ public String getSubdirectory() { return this.subdirectory; } /** *

* Specifies path segments if you want to limit your transfer to a virtual directory in your container (for example, * /my/images). *

* * @param subdirectory * Specifies path segments if you want to limit your transfer to a virtual directory in your container (for * example, /my/images). * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationAzureBlobRequest withSubdirectory(String subdirectory) { setSubdirectory(subdirectory); return this; } /** *

* Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect with your Azure Blob Storage * container. *

*

* You can specify more than one agent. For more information, see Using multiple agents for your * transfer. *

* * @return Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect with your Azure Blob * Storage container.

*

* You can specify more than one agent. For more information, see Using multiple agents * for your transfer. */ public java.util.List getAgentArns() { return agentArns; } /** *

* Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect with your Azure Blob Storage * container. *

*

* You can specify more than one agent. For more information, see Using multiple agents for your * transfer. *

* * @param agentArns * Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect with your Azure Blob * Storage container.

*

* You can specify more than one agent. For more information, see Using multiple agents * for your transfer. */ public void setAgentArns(java.util.Collection agentArns) { if (agentArns == null) { this.agentArns = null; return; } this.agentArns = new java.util.ArrayList(agentArns); } /** *

* Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect with your Azure Blob Storage * container. *

*

* You can specify more than one agent. For more information, see Using multiple agents for your * transfer. *

*

* 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 * Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect with your Azure Blob * Storage container.

*

* You can specify more than one agent. For more information, see Using multiple agents * for your transfer. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationAzureBlobRequest withAgentArns(String... agentArns) { if (this.agentArns == null) { setAgentArns(new java.util.ArrayList(agentArns.length)); } for (String ele : agentArns) { this.agentArns.add(ele); } return this; } /** *

* Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect with your Azure Blob Storage * container. *

*

* You can specify more than one agent. For more information, see Using multiple agents for your * transfer. *

* * @param agentArns * Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect with your Azure Blob * Storage container.

*

* You can specify more than one agent. For more information, see Using multiple agents * for your transfer. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationAzureBlobRequest withAgentArns(java.util.Collection agentArns) { setAgentArns(agentArns); return this; } /** *

* Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least a name tag for your transfer location. *

* * @return Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least a name tag for your transfer location. */ public java.util.List getTags() { return tags; } /** *

* Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least a name tag for your transfer location. *

* * @param tags * Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least a name tag for your transfer location. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least a name tag for your transfer location. *

*

* 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 * Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least a name tag for your transfer location. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationAzureBlobRequest withTags(TagListEntry... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (TagListEntry ele : tags) { this.tags.add(ele); } return this; } /** *

* Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least a name tag for your transfer location. *

* * @param tags * Specifies labels that help you categorize, filter, and search for your Amazon Web Services resources. We * recommend creating at least a name tag for your transfer location. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateLocationAzureBlobRequest 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 (getContainerUrl() != null) sb.append("ContainerUrl: ").append(getContainerUrl()).append(","); if (getAuthenticationType() != null) sb.append("AuthenticationType: ").append(getAuthenticationType()).append(","); if (getSasConfiguration() != null) sb.append("SasConfiguration: ").append(getSasConfiguration()).append(","); if (getBlobType() != null) sb.append("BlobType: ").append(getBlobType()).append(","); if (getAccessTier() != null) sb.append("AccessTier: ").append(getAccessTier()).append(","); if (getSubdirectory() != null) sb.append("Subdirectory: ").append(getSubdirectory()).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 CreateLocationAzureBlobRequest == false) return false; CreateLocationAzureBlobRequest other = (CreateLocationAzureBlobRequest) obj; if (other.getContainerUrl() == null ^ this.getContainerUrl() == null) return false; if (other.getContainerUrl() != null && other.getContainerUrl().equals(this.getContainerUrl()) == false) return false; if (other.getAuthenticationType() == null ^ this.getAuthenticationType() == null) return false; if (other.getAuthenticationType() != null && other.getAuthenticationType().equals(this.getAuthenticationType()) == false) return false; if (other.getSasConfiguration() == null ^ this.getSasConfiguration() == null) return false; if (other.getSasConfiguration() != null && other.getSasConfiguration().equals(this.getSasConfiguration()) == false) return false; if (other.getBlobType() == null ^ this.getBlobType() == null) return false; if (other.getBlobType() != null && other.getBlobType().equals(this.getBlobType()) == false) return false; if (other.getAccessTier() == null ^ this.getAccessTier() == null) return false; if (other.getAccessTier() != null && other.getAccessTier().equals(this.getAccessTier()) == 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.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 + ((getContainerUrl() == null) ? 0 : getContainerUrl().hashCode()); hashCode = prime * hashCode + ((getAuthenticationType() == null) ? 0 : getAuthenticationType().hashCode()); hashCode = prime * hashCode + ((getSasConfiguration() == null) ? 0 : getSasConfiguration().hashCode()); hashCode = prime * hashCode + ((getBlobType() == null) ? 0 : getBlobType().hashCode()); hashCode = prime * hashCode + ((getAccessTier() == null) ? 0 : getAccessTier().hashCode()); hashCode = prime * hashCode + ((getSubdirectory() == null) ? 0 : getSubdirectory().hashCode()); hashCode = prime * hashCode + ((getAgentArns() == null) ? 0 : getAgentArns().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public CreateLocationAzureBlobRequest clone() { return (CreateLocationAzureBlobRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy