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

com.amazonaws.services.mediatailor.model.CreateSourceLocationRequest Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.772
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.mediatailor.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 CreateSourceLocationRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* Access configuration parameters. Configures the type of authentication used to access content from your source * location. *

*/ private AccessConfiguration accessConfiguration; /** *

* The optional configuration for the server that serves segments. *

*/ private DefaultSegmentDeliveryConfiguration defaultSegmentDeliveryConfiguration; /** *

* The source's HTTP package configurations. *

*/ private HttpConfiguration httpConfiguration; /** *

* A list of the segment delivery configurations associated with this resource. *

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

* The name associated with the source location. *

*/ private String sourceLocationName; /** *

* The tags to assign to the source location. Tags are key-value pairs that you can associate with Amazon resources * to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor * Resources. *

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

* Access configuration parameters. Configures the type of authentication used to access content from your source * location. *

* * @param accessConfiguration * Access configuration parameters. Configures the type of authentication used to access content from your * source location. */ public void setAccessConfiguration(AccessConfiguration accessConfiguration) { this.accessConfiguration = accessConfiguration; } /** *

* Access configuration parameters. Configures the type of authentication used to access content from your source * location. *

* * @return Access configuration parameters. Configures the type of authentication used to access content from your * source location. */ public AccessConfiguration getAccessConfiguration() { return this.accessConfiguration; } /** *

* Access configuration parameters. Configures the type of authentication used to access content from your source * location. *

* * @param accessConfiguration * Access configuration parameters. Configures the type of authentication used to access content from your * source location. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSourceLocationRequest withAccessConfiguration(AccessConfiguration accessConfiguration) { setAccessConfiguration(accessConfiguration); return this; } /** *

* The optional configuration for the server that serves segments. *

* * @param defaultSegmentDeliveryConfiguration * The optional configuration for the server that serves segments. */ public void setDefaultSegmentDeliveryConfiguration(DefaultSegmentDeliveryConfiguration defaultSegmentDeliveryConfiguration) { this.defaultSegmentDeliveryConfiguration = defaultSegmentDeliveryConfiguration; } /** *

* The optional configuration for the server that serves segments. *

* * @return The optional configuration for the server that serves segments. */ public DefaultSegmentDeliveryConfiguration getDefaultSegmentDeliveryConfiguration() { return this.defaultSegmentDeliveryConfiguration; } /** *

* The optional configuration for the server that serves segments. *

* * @param defaultSegmentDeliveryConfiguration * The optional configuration for the server that serves segments. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSourceLocationRequest withDefaultSegmentDeliveryConfiguration(DefaultSegmentDeliveryConfiguration defaultSegmentDeliveryConfiguration) { setDefaultSegmentDeliveryConfiguration(defaultSegmentDeliveryConfiguration); return this; } /** *

* The source's HTTP package configurations. *

* * @param httpConfiguration * The source's HTTP package configurations. */ public void setHttpConfiguration(HttpConfiguration httpConfiguration) { this.httpConfiguration = httpConfiguration; } /** *

* The source's HTTP package configurations. *

* * @return The source's HTTP package configurations. */ public HttpConfiguration getHttpConfiguration() { return this.httpConfiguration; } /** *

* The source's HTTP package configurations. *

* * @param httpConfiguration * The source's HTTP package configurations. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSourceLocationRequest withHttpConfiguration(HttpConfiguration httpConfiguration) { setHttpConfiguration(httpConfiguration); return this; } /** *

* A list of the segment delivery configurations associated with this resource. *

* * @return A list of the segment delivery configurations associated with this resource. */ public java.util.List getSegmentDeliveryConfigurations() { return segmentDeliveryConfigurations; } /** *

* A list of the segment delivery configurations associated with this resource. *

* * @param segmentDeliveryConfigurations * A list of the segment delivery configurations associated with this resource. */ public void setSegmentDeliveryConfigurations(java.util.Collection segmentDeliveryConfigurations) { if (segmentDeliveryConfigurations == null) { this.segmentDeliveryConfigurations = null; return; } this.segmentDeliveryConfigurations = new java.util.ArrayList(segmentDeliveryConfigurations); } /** *

* A list of the segment delivery configurations associated with this resource. *

*

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

* * @param segmentDeliveryConfigurations * A list of the segment delivery configurations associated with this resource. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSourceLocationRequest withSegmentDeliveryConfigurations(SegmentDeliveryConfiguration... segmentDeliveryConfigurations) { if (this.segmentDeliveryConfigurations == null) { setSegmentDeliveryConfigurations(new java.util.ArrayList(segmentDeliveryConfigurations.length)); } for (SegmentDeliveryConfiguration ele : segmentDeliveryConfigurations) { this.segmentDeliveryConfigurations.add(ele); } return this; } /** *

* A list of the segment delivery configurations associated with this resource. *

* * @param segmentDeliveryConfigurations * A list of the segment delivery configurations associated with this resource. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSourceLocationRequest withSegmentDeliveryConfigurations(java.util.Collection segmentDeliveryConfigurations) { setSegmentDeliveryConfigurations(segmentDeliveryConfigurations); return this; } /** *

* The name associated with the source location. *

* * @param sourceLocationName * The name associated with the source location. */ public void setSourceLocationName(String sourceLocationName) { this.sourceLocationName = sourceLocationName; } /** *

* The name associated with the source location. *

* * @return The name associated with the source location. */ public String getSourceLocationName() { return this.sourceLocationName; } /** *

* The name associated with the source location. *

* * @param sourceLocationName * The name associated with the source location. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSourceLocationRequest withSourceLocationName(String sourceLocationName) { setSourceLocationName(sourceLocationName); return this; } /** *

* The tags to assign to the source location. Tags are key-value pairs that you can associate with Amazon resources * to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor * Resources. *

* * @return The tags to assign to the source location. Tags are key-value pairs that you can associate with Amazon * resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor * Resources. */ public java.util.Map getTags() { return tags; } /** *

* The tags to assign to the source location. Tags are key-value pairs that you can associate with Amazon resources * to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor * Resources. *

* * @param tags * The tags to assign to the source location. Tags are key-value pairs that you can associate with Amazon * resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor * Resources. */ public void setTags(java.util.Map tags) { this.tags = tags; } /** *

* The tags to assign to the source location. Tags are key-value pairs that you can associate with Amazon resources * to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor * Resources. *

* * @param tags * The tags to assign to the source location. Tags are key-value pairs that you can associate with Amazon * resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor * Resources. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateSourceLocationRequest withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see CreateSourceLocationRequest#withTags * @returns a reference to this object so that method calls can be chained together. */ public CreateSourceLocationRequest 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 CreateSourceLocationRequest 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 (getAccessConfiguration() != null) sb.append("AccessConfiguration: ").append(getAccessConfiguration()).append(","); if (getDefaultSegmentDeliveryConfiguration() != null) sb.append("DefaultSegmentDeliveryConfiguration: ").append(getDefaultSegmentDeliveryConfiguration()).append(","); if (getHttpConfiguration() != null) sb.append("HttpConfiguration: ").append(getHttpConfiguration()).append(","); if (getSegmentDeliveryConfigurations() != null) sb.append("SegmentDeliveryConfigurations: ").append(getSegmentDeliveryConfigurations()).append(","); if (getSourceLocationName() != null) sb.append("SourceLocationName: ").append(getSourceLocationName()).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 CreateSourceLocationRequest == false) return false; CreateSourceLocationRequest other = (CreateSourceLocationRequest) obj; if (other.getAccessConfiguration() == null ^ this.getAccessConfiguration() == null) return false; if (other.getAccessConfiguration() != null && other.getAccessConfiguration().equals(this.getAccessConfiguration()) == false) return false; if (other.getDefaultSegmentDeliveryConfiguration() == null ^ this.getDefaultSegmentDeliveryConfiguration() == null) return false; if (other.getDefaultSegmentDeliveryConfiguration() != null && other.getDefaultSegmentDeliveryConfiguration().equals(this.getDefaultSegmentDeliveryConfiguration()) == false) return false; if (other.getHttpConfiguration() == null ^ this.getHttpConfiguration() == null) return false; if (other.getHttpConfiguration() != null && other.getHttpConfiguration().equals(this.getHttpConfiguration()) == false) return false; if (other.getSegmentDeliveryConfigurations() == null ^ this.getSegmentDeliveryConfigurations() == null) return false; if (other.getSegmentDeliveryConfigurations() != null && other.getSegmentDeliveryConfigurations().equals(this.getSegmentDeliveryConfigurations()) == false) return false; if (other.getSourceLocationName() == null ^ this.getSourceLocationName() == null) return false; if (other.getSourceLocationName() != null && other.getSourceLocationName().equals(this.getSourceLocationName()) == 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 + ((getAccessConfiguration() == null) ? 0 : getAccessConfiguration().hashCode()); hashCode = prime * hashCode + ((getDefaultSegmentDeliveryConfiguration() == null) ? 0 : getDefaultSegmentDeliveryConfiguration().hashCode()); hashCode = prime * hashCode + ((getHttpConfiguration() == null) ? 0 : getHttpConfiguration().hashCode()); hashCode = prime * hashCode + ((getSegmentDeliveryConfigurations() == null) ? 0 : getSegmentDeliveryConfigurations().hashCode()); hashCode = prime * hashCode + ((getSourceLocationName() == null) ? 0 : getSourceLocationName().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public CreateSourceLocationRequest clone() { return (CreateSourceLocationRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy