com.amazonaws.services.athena.model.CreatePresignedNotebookUrlResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-athena Show documentation
/*
* 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.athena.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreatePresignedNotebookUrlResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The URL of the notebook. The URL includes the authentication token and notebook file name and points directly to
* the opened notebook.
*
*/
private String notebookUrl;
/**
*
* The authentication token for the notebook.
*
*/
private String authToken;
/**
*
* The UTC epoch time when the authentication token expires.
*
*/
private Long authTokenExpirationTime;
/**
*
* The URL of the notebook. The URL includes the authentication token and notebook file name and points directly to
* the opened notebook.
*
*
* @param notebookUrl
* The URL of the notebook. The URL includes the authentication token and notebook file name and points
* directly to the opened notebook.
*/
public void setNotebookUrl(String notebookUrl) {
this.notebookUrl = notebookUrl;
}
/**
*
* The URL of the notebook. The URL includes the authentication token and notebook file name and points directly to
* the opened notebook.
*
*
* @return The URL of the notebook. The URL includes the authentication token and notebook file name and points
* directly to the opened notebook.
*/
public String getNotebookUrl() {
return this.notebookUrl;
}
/**
*
* The URL of the notebook. The URL includes the authentication token and notebook file name and points directly to
* the opened notebook.
*
*
* @param notebookUrl
* The URL of the notebook. The URL includes the authentication token and notebook file name and points
* directly to the opened notebook.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreatePresignedNotebookUrlResult withNotebookUrl(String notebookUrl) {
setNotebookUrl(notebookUrl);
return this;
}
/**
*
* The authentication token for the notebook.
*
*
* @param authToken
* The authentication token for the notebook.
*/
public void setAuthToken(String authToken) {
this.authToken = authToken;
}
/**
*
* The authentication token for the notebook.
*
*
* @return The authentication token for the notebook.
*/
public String getAuthToken() {
return this.authToken;
}
/**
*
* The authentication token for the notebook.
*
*
* @param authToken
* The authentication token for the notebook.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreatePresignedNotebookUrlResult withAuthToken(String authToken) {
setAuthToken(authToken);
return this;
}
/**
*
* The UTC epoch time when the authentication token expires.
*
*
* @param authTokenExpirationTime
* The UTC epoch time when the authentication token expires.
*/
public void setAuthTokenExpirationTime(Long authTokenExpirationTime) {
this.authTokenExpirationTime = authTokenExpirationTime;
}
/**
*
* The UTC epoch time when the authentication token expires.
*
*
* @return The UTC epoch time when the authentication token expires.
*/
public Long getAuthTokenExpirationTime() {
return this.authTokenExpirationTime;
}
/**
*
* The UTC epoch time when the authentication token expires.
*
*
* @param authTokenExpirationTime
* The UTC epoch time when the authentication token expires.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreatePresignedNotebookUrlResult withAuthTokenExpirationTime(Long authTokenExpirationTime) {
setAuthTokenExpirationTime(authTokenExpirationTime);
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 (getNotebookUrl() != null)
sb.append("NotebookUrl: ").append(getNotebookUrl()).append(",");
if (getAuthToken() != null)
sb.append("AuthToken: ").append(getAuthToken()).append(",");
if (getAuthTokenExpirationTime() != null)
sb.append("AuthTokenExpirationTime: ").append(getAuthTokenExpirationTime());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreatePresignedNotebookUrlResult == false)
return false;
CreatePresignedNotebookUrlResult other = (CreatePresignedNotebookUrlResult) obj;
if (other.getNotebookUrl() == null ^ this.getNotebookUrl() == null)
return false;
if (other.getNotebookUrl() != null && other.getNotebookUrl().equals(this.getNotebookUrl()) == false)
return false;
if (other.getAuthToken() == null ^ this.getAuthToken() == null)
return false;
if (other.getAuthToken() != null && other.getAuthToken().equals(this.getAuthToken()) == false)
return false;
if (other.getAuthTokenExpirationTime() == null ^ this.getAuthTokenExpirationTime() == null)
return false;
if (other.getAuthTokenExpirationTime() != null && other.getAuthTokenExpirationTime().equals(this.getAuthTokenExpirationTime()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getNotebookUrl() == null) ? 0 : getNotebookUrl().hashCode());
hashCode = prime * hashCode + ((getAuthToken() == null) ? 0 : getAuthToken().hashCode());
hashCode = prime * hashCode + ((getAuthTokenExpirationTime() == null) ? 0 : getAuthTokenExpirationTime().hashCode());
return hashCode;
}
@Override
public CreatePresignedNotebookUrlResult clone() {
try {
return (CreatePresignedNotebookUrlResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}