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

com.amazonaws.services.ivschat.model.CreateChatTokenResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Interactive Video Service Chat module holds the client classes that are used for communicating with Amazon Interactive Video Service Chat 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.ivschat.model;

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

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

    /**
     * 

* The issued client token, encrypted. *

*/ private String token; /** *

* Time after which the token is no longer valid and cannot be used to connect to a room. This is an ISO 8601 * timestamp; note that this is returned as a string. *

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

* Time after which an end user's session is no longer valid. This is an ISO 8601 timestamp; note that this is * returned as a string. *

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

* The issued client token, encrypted. *

* * @param token * The issued client token, encrypted. */ public void setToken(String token) { this.token = token; } /** *

* The issued client token, encrypted. *

* * @return The issued client token, encrypted. */ public String getToken() { return this.token; } /** *

* The issued client token, encrypted. *

* * @param token * The issued client token, encrypted. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateChatTokenResult withToken(String token) { setToken(token); return this; } /** *

* Time after which the token is no longer valid and cannot be used to connect to a room. This is an ISO 8601 * timestamp; note that this is returned as a string. *

* * @param tokenExpirationTime * Time after which the token is no longer valid and cannot be used to connect to a room. This is an ISO 8601 * timestamp; note that this is returned as a string. */ public void setTokenExpirationTime(java.util.Date tokenExpirationTime) { this.tokenExpirationTime = tokenExpirationTime; } /** *

* Time after which the token is no longer valid and cannot be used to connect to a room. This is an ISO 8601 * timestamp; note that this is returned as a string. *

* * @return Time after which the token is no longer valid and cannot be used to connect to a room. This is an ISO * 8601 timestamp; note that this is returned as a string. */ public java.util.Date getTokenExpirationTime() { return this.tokenExpirationTime; } /** *

* Time after which the token is no longer valid and cannot be used to connect to a room. This is an ISO 8601 * timestamp; note that this is returned as a string. *

* * @param tokenExpirationTime * Time after which the token is no longer valid and cannot be used to connect to a room. This is an ISO 8601 * timestamp; note that this is returned as a string. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateChatTokenResult withTokenExpirationTime(java.util.Date tokenExpirationTime) { setTokenExpirationTime(tokenExpirationTime); return this; } /** *

* Time after which an end user's session is no longer valid. This is an ISO 8601 timestamp; note that this is * returned as a string. *

* * @param sessionExpirationTime * Time after which an end user's session is no longer valid. This is an ISO 8601 timestamp; note that * this is returned as a string. */ public void setSessionExpirationTime(java.util.Date sessionExpirationTime) { this.sessionExpirationTime = sessionExpirationTime; } /** *

* Time after which an end user's session is no longer valid. This is an ISO 8601 timestamp; note that this is * returned as a string. *

* * @return Time after which an end user's session is no longer valid. This is an ISO 8601 timestamp; note that * this is returned as a string. */ public java.util.Date getSessionExpirationTime() { return this.sessionExpirationTime; } /** *

* Time after which an end user's session is no longer valid. This is an ISO 8601 timestamp; note that this is * returned as a string. *

* * @param sessionExpirationTime * Time after which an end user's session is no longer valid. This is an ISO 8601 timestamp; note that * this is returned as a string. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateChatTokenResult withSessionExpirationTime(java.util.Date sessionExpirationTime) { setSessionExpirationTime(sessionExpirationTime); 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 (getToken() != null) sb.append("Token: ").append("***Sensitive Data Redacted***").append(","); if (getTokenExpirationTime() != null) sb.append("TokenExpirationTime: ").append(getTokenExpirationTime()).append(","); if (getSessionExpirationTime() != null) sb.append("SessionExpirationTime: ").append(getSessionExpirationTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateChatTokenResult == false) return false; CreateChatTokenResult other = (CreateChatTokenResult) obj; if (other.getToken() == null ^ this.getToken() == null) return false; if (other.getToken() != null && other.getToken().equals(this.getToken()) == false) return false; if (other.getTokenExpirationTime() == null ^ this.getTokenExpirationTime() == null) return false; if (other.getTokenExpirationTime() != null && other.getTokenExpirationTime().equals(this.getTokenExpirationTime()) == false) return false; if (other.getSessionExpirationTime() == null ^ this.getSessionExpirationTime() == null) return false; if (other.getSessionExpirationTime() != null && other.getSessionExpirationTime().equals(this.getSessionExpirationTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getToken() == null) ? 0 : getToken().hashCode()); hashCode = prime * hashCode + ((getTokenExpirationTime() == null) ? 0 : getTokenExpirationTime().hashCode()); hashCode = prime * hashCode + ((getSessionExpirationTime() == null) ? 0 : getSessionExpirationTime().hashCode()); return hashCode; } @Override public CreateChatTokenResult clone() { try { return (CreateChatTokenResult) 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