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

com.amazonaws.services.mediastore.model.Container Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2013-2018 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.mediastore.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* This section describes operations that you can perform on an AWS Elemental MediaStore container. *

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

* The DNS endpoint of the container. Use from 1 to 255 characters. Use this endpoint to identify this container * when sending requests to the data plane. *

*/ private String endpoint; /** *

* Unix timestamp. *

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

* The Amazon Resource Name (ARN) of the container. The ARN has the following format: *

*

* arn:aws:<region>:<account that owns this container>:container/<name of container> *

*

* For example: arn:aws:mediastore:us-west-2:111122223333:container/movies *

*/ private String aRN; /** *

* The name of the container. *

*/ private String name; /** *

* The status of container creation or deletion. The status is one of the following: CREATING, * ACTIVE, or DELETING. While the service is creating the container, the status is * CREATING. When the endpoint is available, the status changes to ACTIVE. *

*/ private String status; /** *

* The DNS endpoint of the container. Use from 1 to 255 characters. Use this endpoint to identify this container * when sending requests to the data plane. *

* * @param endpoint * The DNS endpoint of the container. Use from 1 to 255 characters. Use this endpoint to identify this * container when sending requests to the data plane. */ public void setEndpoint(String endpoint) { this.endpoint = endpoint; } /** *

* The DNS endpoint of the container. Use from 1 to 255 characters. Use this endpoint to identify this container * when sending requests to the data plane. *

* * @return The DNS endpoint of the container. Use from 1 to 255 characters. Use this endpoint to identify this * container when sending requests to the data plane. */ public String getEndpoint() { return this.endpoint; } /** *

* The DNS endpoint of the container. Use from 1 to 255 characters. Use this endpoint to identify this container * when sending requests to the data plane. *

* * @param endpoint * The DNS endpoint of the container. Use from 1 to 255 characters. Use this endpoint to identify this * container when sending requests to the data plane. * @return Returns a reference to this object so that method calls can be chained together. */ public Container withEndpoint(String endpoint) { setEndpoint(endpoint); return this; } /** *

* Unix timestamp. *

* * @param creationTime * Unix timestamp. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

* Unix timestamp. *

* * @return Unix timestamp. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

* Unix timestamp. *

* * @param creationTime * Unix timestamp. * @return Returns a reference to this object so that method calls can be chained together. */ public Container withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** *

* The Amazon Resource Name (ARN) of the container. The ARN has the following format: *

*

* arn:aws:<region>:<account that owns this container>:container/<name of container> *

*

* For example: arn:aws:mediastore:us-west-2:111122223333:container/movies *

* * @param aRN * The Amazon Resource Name (ARN) of the container. The ARN has the following format:

*

* arn:aws:<region>:<account that owns this container>:container/<name of container> *

*

* For example: arn:aws:mediastore:us-west-2:111122223333:container/movies */ public void setARN(String aRN) { this.aRN = aRN; } /** *

* The Amazon Resource Name (ARN) of the container. The ARN has the following format: *

*

* arn:aws:<region>:<account that owns this container>:container/<name of container> *

*

* For example: arn:aws:mediastore:us-west-2:111122223333:container/movies *

* * @return The Amazon Resource Name (ARN) of the container. The ARN has the following format:

*

* arn:aws:<region>:<account that owns this container>:container/<name of container> *

*

* For example: arn:aws:mediastore:us-west-2:111122223333:container/movies */ public String getARN() { return this.aRN; } /** *

* The Amazon Resource Name (ARN) of the container. The ARN has the following format: *

*

* arn:aws:<region>:<account that owns this container>:container/<name of container> *

*

* For example: arn:aws:mediastore:us-west-2:111122223333:container/movies *

* * @param aRN * The Amazon Resource Name (ARN) of the container. The ARN has the following format:

*

* arn:aws:<region>:<account that owns this container>:container/<name of container> *

*

* For example: arn:aws:mediastore:us-west-2:111122223333:container/movies * @return Returns a reference to this object so that method calls can be chained together. */ public Container withARN(String aRN) { setARN(aRN); return this; } /** *

* The name of the container. *

* * @param name * The name of the container. */ public void setName(String name) { this.name = name; } /** *

* The name of the container. *

* * @return The name of the container. */ public String getName() { return this.name; } /** *

* The name of the container. *

* * @param name * The name of the container. * @return Returns a reference to this object so that method calls can be chained together. */ public Container withName(String name) { setName(name); return this; } /** *

* The status of container creation or deletion. The status is one of the following: CREATING, * ACTIVE, or DELETING. While the service is creating the container, the status is * CREATING. When the endpoint is available, the status changes to ACTIVE. *

* * @param status * The status of container creation or deletion. The status is one of the following: CREATING, * ACTIVE, or DELETING. While the service is creating the container, the status is * CREATING. When the endpoint is available, the status changes to ACTIVE. * @see ContainerStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of container creation or deletion. The status is one of the following: CREATING, * ACTIVE, or DELETING. While the service is creating the container, the status is * CREATING. When the endpoint is available, the status changes to ACTIVE. *

* * @return The status of container creation or deletion. The status is one of the following: CREATING, * ACTIVE, or DELETING. While the service is creating the container, the status is * CREATING. When the endpoint is available, the status changes to ACTIVE. * @see ContainerStatus */ public String getStatus() { return this.status; } /** *

* The status of container creation or deletion. The status is one of the following: CREATING, * ACTIVE, or DELETING. While the service is creating the container, the status is * CREATING. When the endpoint is available, the status changes to ACTIVE. *

* * @param status * The status of container creation or deletion. The status is one of the following: CREATING, * ACTIVE, or DELETING. While the service is creating the container, the status is * CREATING. When the endpoint is available, the status changes to ACTIVE. * @return Returns a reference to this object so that method calls can be chained together. * @see ContainerStatus */ public Container withStatus(String status) { setStatus(status); return this; } /** *

* The status of container creation or deletion. The status is one of the following: CREATING, * ACTIVE, or DELETING. While the service is creating the container, the status is * CREATING. When the endpoint is available, the status changes to ACTIVE. *

* * @param status * The status of container creation or deletion. The status is one of the following: CREATING, * ACTIVE, or DELETING. While the service is creating the container, the status is * CREATING. When the endpoint is available, the status changes to ACTIVE. * @return Returns a reference to this object so that method calls can be chained together. * @see ContainerStatus */ public Container withStatus(ContainerStatus status) { this.status = status.toString(); return this; } /** * Returns a string representation of this object; useful for testing and debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getEndpoint() != null) sb.append("Endpoint: ").append(getEndpoint()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getARN() != null) sb.append("ARN: ").append(getARN()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Container == false) return false; Container other = (Container) obj; if (other.getEndpoint() == null ^ this.getEndpoint() == null) return false; if (other.getEndpoint() != null && other.getEndpoint().equals(this.getEndpoint()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == 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.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEndpoint() == null) ? 0 : getEndpoint().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getARN() == null) ? 0 : getARN().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); return hashCode; } @Override public Container clone() { try { return (Container) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.mediastore.model.transform.ContainerMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy