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

com.amazonaws.services.cloudfront.model.StreamingDistribution Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon CloudFront module holds the client classes that are used for communicating with Amazon CloudFront 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.cloudfront.model;

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

/**
 * 

* A streaming distribution tells CloudFront where you want RTMP content to be delivered from, and the details about how * to track and manage content delivery. *

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

* The identifier for the RTMP distribution. For example: EGTXBD79EXAMPLE. *

*/ private String id; /** *

* The ARN (Amazon Resource Name) for the distribution. For example: * arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is * your Amazon Web Services account ID. *

*/ private String aRN; /** *

* The current status of the RTMP distribution. When the status is Deployed, the distribution's * information is propagated to all CloudFront edge locations. *

*/ private String status; /** *

* The date and time that the distribution was last modified. *

*/ private java.util.Date lastModifiedTime; /** *

* The domain name that corresponds to the streaming distribution, for example, * s5c39gqb8ow64r.cloudfront.net. *

*/ private String domainName; /** *

* A complex type that lists the Amazon Web Services accounts, if any, that you included in the * TrustedSigners complex type for this distribution. These are the accounts that you want to allow to * create signed URLs for private content. *

*

* The Signer complex type lists the Amazon Web Services account number of the trusted signer or * self if the signer is the Amazon Web Services account that created the distribution. The * Signer element also includes the IDs of any active CloudFront key pairs that are associated with the * trusted signer's Amazon Web Services account. If no KeyPairId element appears for a * Signer, that signer can't create signed URLs. *

*

* For more information, see Serving Private * Content through CloudFront in the Amazon CloudFront Developer Guide. *

*/ private ActiveTrustedSigners activeTrustedSigners; /** *

* The current configuration information for the RTMP distribution. *

*/ private StreamingDistributionConfig streamingDistributionConfig; /** *

* The identifier for the RTMP distribution. For example: EGTXBD79EXAMPLE. *

* * @param id * The identifier for the RTMP distribution. For example: EGTXBD79EXAMPLE. */ public void setId(String id) { this.id = id; } /** *

* The identifier for the RTMP distribution. For example: EGTXBD79EXAMPLE. *

* * @return The identifier for the RTMP distribution. For example: EGTXBD79EXAMPLE. */ public String getId() { return this.id; } /** *

* The identifier for the RTMP distribution. For example: EGTXBD79EXAMPLE. *

* * @param id * The identifier for the RTMP distribution. For example: EGTXBD79EXAMPLE. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamingDistribution withId(String id) { setId(id); return this; } /** *

* The ARN (Amazon Resource Name) for the distribution. For example: * arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is * your Amazon Web Services account ID. *

* * @param aRN * The ARN (Amazon Resource Name) for the distribution. For example: * arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where * 123456789012 is your Amazon Web Services account ID. */ public void setARN(String aRN) { this.aRN = aRN; } /** *

* The ARN (Amazon Resource Name) for the distribution. For example: * arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is * your Amazon Web Services account ID. *

* * @return The ARN (Amazon Resource Name) for the distribution. For example: * arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where * 123456789012 is your Amazon Web Services account ID. */ public String getARN() { return this.aRN; } /** *

* The ARN (Amazon Resource Name) for the distribution. For example: * arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where 123456789012 is * your Amazon Web Services account ID. *

* * @param aRN * The ARN (Amazon Resource Name) for the distribution. For example: * arn:aws:cloudfront::123456789012:distribution/EDFDVBD632BHDS5, where * 123456789012 is your Amazon Web Services account ID. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamingDistribution withARN(String aRN) { setARN(aRN); return this; } /** *

* The current status of the RTMP distribution. When the status is Deployed, the distribution's * information is propagated to all CloudFront edge locations. *

* * @param status * The current status of the RTMP distribution. When the status is Deployed, the distribution's * information is propagated to all CloudFront edge locations. */ public void setStatus(String status) { this.status = status; } /** *

* The current status of the RTMP distribution. When the status is Deployed, the distribution's * information is propagated to all CloudFront edge locations. *

* * @return The current status of the RTMP distribution. When the status is Deployed, the distribution's * information is propagated to all CloudFront edge locations. */ public String getStatus() { return this.status; } /** *

* The current status of the RTMP distribution. When the status is Deployed, the distribution's * information is propagated to all CloudFront edge locations. *

* * @param status * The current status of the RTMP distribution. When the status is Deployed, the distribution's * information is propagated to all CloudFront edge locations. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamingDistribution withStatus(String status) { setStatus(status); return this; } /** *

* The date and time that the distribution was last modified. *

* * @param lastModifiedTime * The date and time that the distribution was last modified. */ public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** *

* The date and time that the distribution was last modified. *

* * @return The date and time that the distribution was last modified. */ public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; } /** *

* The date and time that the distribution was last modified. *

* * @param lastModifiedTime * The date and time that the distribution was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamingDistribution withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); return this; } /** *

* The domain name that corresponds to the streaming distribution, for example, * s5c39gqb8ow64r.cloudfront.net. *

* * @param domainName * The domain name that corresponds to the streaming distribution, for example, * s5c39gqb8ow64r.cloudfront.net. */ public void setDomainName(String domainName) { this.domainName = domainName; } /** *

* The domain name that corresponds to the streaming distribution, for example, * s5c39gqb8ow64r.cloudfront.net. *

* * @return The domain name that corresponds to the streaming distribution, for example, * s5c39gqb8ow64r.cloudfront.net. */ public String getDomainName() { return this.domainName; } /** *

* The domain name that corresponds to the streaming distribution, for example, * s5c39gqb8ow64r.cloudfront.net. *

* * @param domainName * The domain name that corresponds to the streaming distribution, for example, * s5c39gqb8ow64r.cloudfront.net. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamingDistribution withDomainName(String domainName) { setDomainName(domainName); return this; } /** *

* A complex type that lists the Amazon Web Services accounts, if any, that you included in the * TrustedSigners complex type for this distribution. These are the accounts that you want to allow to * create signed URLs for private content. *

*

* The Signer complex type lists the Amazon Web Services account number of the trusted signer or * self if the signer is the Amazon Web Services account that created the distribution. The * Signer element also includes the IDs of any active CloudFront key pairs that are associated with the * trusted signer's Amazon Web Services account. If no KeyPairId element appears for a * Signer, that signer can't create signed URLs. *

*

* For more information, see Serving Private * Content through CloudFront in the Amazon CloudFront Developer Guide. *

* * @param activeTrustedSigners * A complex type that lists the Amazon Web Services accounts, if any, that you included in the * TrustedSigners complex type for this distribution. These are the accounts that you want to * allow to create signed URLs for private content.

*

* The Signer complex type lists the Amazon Web Services account number of the trusted signer or * self if the signer is the Amazon Web Services account that created the distribution. The * Signer element also includes the IDs of any active CloudFront key pairs that are associated * with the trusted signer's Amazon Web Services account. If no KeyPairId element appears for a * Signer, that signer can't create signed URLs. *

*

* For more information, see Serving * Private Content through CloudFront in the Amazon CloudFront Developer Guide. */ public void setActiveTrustedSigners(ActiveTrustedSigners activeTrustedSigners) { this.activeTrustedSigners = activeTrustedSigners; } /** *

* A complex type that lists the Amazon Web Services accounts, if any, that you included in the * TrustedSigners complex type for this distribution. These are the accounts that you want to allow to * create signed URLs for private content. *

*

* The Signer complex type lists the Amazon Web Services account number of the trusted signer or * self if the signer is the Amazon Web Services account that created the distribution. The * Signer element also includes the IDs of any active CloudFront key pairs that are associated with the * trusted signer's Amazon Web Services account. If no KeyPairId element appears for a * Signer, that signer can't create signed URLs. *

*

* For more information, see Serving Private * Content through CloudFront in the Amazon CloudFront Developer Guide. *

* * @return A complex type that lists the Amazon Web Services accounts, if any, that you included in the * TrustedSigners complex type for this distribution. These are the accounts that you want to * allow to create signed URLs for private content.

*

* The Signer complex type lists the Amazon Web Services account number of the trusted signer * or self if the signer is the Amazon Web Services account that created the distribution. The * Signer element also includes the IDs of any active CloudFront key pairs that are associated * with the trusted signer's Amazon Web Services account. If no KeyPairId element appears for a * Signer, that signer can't create signed URLs. *

*

* For more information, see Serving * Private Content through CloudFront in the Amazon CloudFront Developer Guide. */ public ActiveTrustedSigners getActiveTrustedSigners() { return this.activeTrustedSigners; } /** *

* A complex type that lists the Amazon Web Services accounts, if any, that you included in the * TrustedSigners complex type for this distribution. These are the accounts that you want to allow to * create signed URLs for private content. *

*

* The Signer complex type lists the Amazon Web Services account number of the trusted signer or * self if the signer is the Amazon Web Services account that created the distribution. The * Signer element also includes the IDs of any active CloudFront key pairs that are associated with the * trusted signer's Amazon Web Services account. If no KeyPairId element appears for a * Signer, that signer can't create signed URLs. *

*

* For more information, see Serving Private * Content through CloudFront in the Amazon CloudFront Developer Guide. *

* * @param activeTrustedSigners * A complex type that lists the Amazon Web Services accounts, if any, that you included in the * TrustedSigners complex type for this distribution. These are the accounts that you want to * allow to create signed URLs for private content.

*

* The Signer complex type lists the Amazon Web Services account number of the trusted signer or * self if the signer is the Amazon Web Services account that created the distribution. The * Signer element also includes the IDs of any active CloudFront key pairs that are associated * with the trusted signer's Amazon Web Services account. If no KeyPairId element appears for a * Signer, that signer can't create signed URLs. *

*

* For more information, see Serving * Private Content through CloudFront in the Amazon CloudFront Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamingDistribution withActiveTrustedSigners(ActiveTrustedSigners activeTrustedSigners) { setActiveTrustedSigners(activeTrustedSigners); return this; } /** *

* The current configuration information for the RTMP distribution. *

* * @param streamingDistributionConfig * The current configuration information for the RTMP distribution. */ public void setStreamingDistributionConfig(StreamingDistributionConfig streamingDistributionConfig) { this.streamingDistributionConfig = streamingDistributionConfig; } /** *

* The current configuration information for the RTMP distribution. *

* * @return The current configuration information for the RTMP distribution. */ public StreamingDistributionConfig getStreamingDistributionConfig() { return this.streamingDistributionConfig; } /** *

* The current configuration information for the RTMP distribution. *

* * @param streamingDistributionConfig * The current configuration information for the RTMP distribution. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamingDistribution withStreamingDistributionConfig(StreamingDistributionConfig streamingDistributionConfig) { setStreamingDistributionConfig(streamingDistributionConfig); 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 (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getARN() != null) sb.append("ARN: ").append(getARN()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(","); if (getDomainName() != null) sb.append("DomainName: ").append(getDomainName()).append(","); if (getActiveTrustedSigners() != null) sb.append("ActiveTrustedSigners: ").append(getActiveTrustedSigners()).append(","); if (getStreamingDistributionConfig() != null) sb.append("StreamingDistributionConfig: ").append(getStreamingDistributionConfig()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StreamingDistribution == false) return false; StreamingDistribution other = (StreamingDistribution) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getARN() == null ^ this.getARN() == null) return false; if (other.getARN() != null && other.getARN().equals(this.getARN()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) return false; if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) return false; if (other.getDomainName() == null ^ this.getDomainName() == null) return false; if (other.getDomainName() != null && other.getDomainName().equals(this.getDomainName()) == false) return false; if (other.getActiveTrustedSigners() == null ^ this.getActiveTrustedSigners() == null) return false; if (other.getActiveTrustedSigners() != null && other.getActiveTrustedSigners().equals(this.getActiveTrustedSigners()) == false) return false; if (other.getStreamingDistributionConfig() == null ^ this.getStreamingDistributionConfig() == null) return false; if (other.getStreamingDistributionConfig() != null && other.getStreamingDistributionConfig().equals(this.getStreamingDistributionConfig()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getARN() == null) ? 0 : getARN().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); hashCode = prime * hashCode + ((getDomainName() == null) ? 0 : getDomainName().hashCode()); hashCode = prime * hashCode + ((getActiveTrustedSigners() == null) ? 0 : getActiveTrustedSigners().hashCode()); hashCode = prime * hashCode + ((getStreamingDistributionConfig() == null) ? 0 : getStreamingDistributionConfig().hashCode()); return hashCode; } @Override public StreamingDistribution clone() { try { return (StreamingDistribution) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy