com.amazonaws.services.quicksight.model.CustomActionURLOperation Maven / Gradle / Ivy
Show all versions of aws-java-sdk-quicksight Show documentation
/*
* Copyright 2018-2023 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.quicksight.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* The URL operation that opens a link to another webpage.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CustomActionURLOperation implements Serializable, Cloneable, StructuredPojo {
/**
*
* THe URL link of the CustomActionURLOperation
.
*
*/
private String uRLTemplate;
/**
*
* The target of the CustomActionURLOperation
.
*
*
* Valid values are defined as follows:
*
*
* -
*
* NEW_TAB
: Opens the target URL in a new browser tab.
*
*
* -
*
* NEW_WINDOW
: Opens the target URL in a new browser window.
*
*
* -
*
* SAME_TAB
: Opens the target URL in the same browser tab.
*
*
*
*/
private String uRLTarget;
/**
*
* THe URL link of the CustomActionURLOperation
.
*
*
* @param uRLTemplate
* THe URL link of the CustomActionURLOperation
.
*/
public void setURLTemplate(String uRLTemplate) {
this.uRLTemplate = uRLTemplate;
}
/**
*
* THe URL link of the CustomActionURLOperation
.
*
*
* @return THe URL link of the CustomActionURLOperation
.
*/
public String getURLTemplate() {
return this.uRLTemplate;
}
/**
*
* THe URL link of the CustomActionURLOperation
.
*
*
* @param uRLTemplate
* THe URL link of the CustomActionURLOperation
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CustomActionURLOperation withURLTemplate(String uRLTemplate) {
setURLTemplate(uRLTemplate);
return this;
}
/**
*
* The target of the CustomActionURLOperation
.
*
*
* Valid values are defined as follows:
*
*
* -
*
* NEW_TAB
: Opens the target URL in a new browser tab.
*
*
* -
*
* NEW_WINDOW
: Opens the target URL in a new browser window.
*
*
* -
*
* SAME_TAB
: Opens the target URL in the same browser tab.
*
*
*
*
* @param uRLTarget
* The target of the CustomActionURLOperation
.
*
* Valid values are defined as follows:
*
*
* -
*
* NEW_TAB
: Opens the target URL in a new browser tab.
*
*
* -
*
* NEW_WINDOW
: Opens the target URL in a new browser window.
*
*
* -
*
* SAME_TAB
: Opens the target URL in the same browser tab.
*
*
* @see URLTargetConfiguration
*/
public void setURLTarget(String uRLTarget) {
this.uRLTarget = uRLTarget;
}
/**
*
* The target of the CustomActionURLOperation
.
*
*
* Valid values are defined as follows:
*
*
* -
*
* NEW_TAB
: Opens the target URL in a new browser tab.
*
*
* -
*
* NEW_WINDOW
: Opens the target URL in a new browser window.
*
*
* -
*
* SAME_TAB
: Opens the target URL in the same browser tab.
*
*
*
*
* @return The target of the CustomActionURLOperation
.
*
* Valid values are defined as follows:
*
*
* -
*
* NEW_TAB
: Opens the target URL in a new browser tab.
*
*
* -
*
* NEW_WINDOW
: Opens the target URL in a new browser window.
*
*
* -
*
* SAME_TAB
: Opens the target URL in the same browser tab.
*
*
* @see URLTargetConfiguration
*/
public String getURLTarget() {
return this.uRLTarget;
}
/**
*
* The target of the CustomActionURLOperation
.
*
*
* Valid values are defined as follows:
*
*
* -
*
* NEW_TAB
: Opens the target URL in a new browser tab.
*
*
* -
*
* NEW_WINDOW
: Opens the target URL in a new browser window.
*
*
* -
*
* SAME_TAB
: Opens the target URL in the same browser tab.
*
*
*
*
* @param uRLTarget
* The target of the CustomActionURLOperation
.
*
* Valid values are defined as follows:
*
*
* -
*
* NEW_TAB
: Opens the target URL in a new browser tab.
*
*
* -
*
* NEW_WINDOW
: Opens the target URL in a new browser window.
*
*
* -
*
* SAME_TAB
: Opens the target URL in the same browser tab.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see URLTargetConfiguration
*/
public CustomActionURLOperation withURLTarget(String uRLTarget) {
setURLTarget(uRLTarget);
return this;
}
/**
*
* The target of the CustomActionURLOperation
.
*
*
* Valid values are defined as follows:
*
*
* -
*
* NEW_TAB
: Opens the target URL in a new browser tab.
*
*
* -
*
* NEW_WINDOW
: Opens the target URL in a new browser window.
*
*
* -
*
* SAME_TAB
: Opens the target URL in the same browser tab.
*
*
*
*
* @param uRLTarget
* The target of the CustomActionURLOperation
.
*
* Valid values are defined as follows:
*
*
* -
*
* NEW_TAB
: Opens the target URL in a new browser tab.
*
*
* -
*
* NEW_WINDOW
: Opens the target URL in a new browser window.
*
*
* -
*
* SAME_TAB
: Opens the target URL in the same browser tab.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see URLTargetConfiguration
*/
public CustomActionURLOperation withURLTarget(URLTargetConfiguration uRLTarget) {
this.uRLTarget = uRLTarget.toString();
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 (getURLTemplate() != null)
sb.append("URLTemplate: ").append(getURLTemplate()).append(",");
if (getURLTarget() != null)
sb.append("URLTarget: ").append(getURLTarget());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CustomActionURLOperation == false)
return false;
CustomActionURLOperation other = (CustomActionURLOperation) obj;
if (other.getURLTemplate() == null ^ this.getURLTemplate() == null)
return false;
if (other.getURLTemplate() != null && other.getURLTemplate().equals(this.getURLTemplate()) == false)
return false;
if (other.getURLTarget() == null ^ this.getURLTarget() == null)
return false;
if (other.getURLTarget() != null && other.getURLTarget().equals(this.getURLTarget()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getURLTemplate() == null) ? 0 : getURLTemplate().hashCode());
hashCode = prime * hashCode + ((getURLTarget() == null) ? 0 : getURLTarget().hashCode());
return hashCode;
}
@Override
public CustomActionURLOperation clone() {
try {
return (CustomActionURLOperation) 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.quicksight.model.transform.CustomActionURLOperationMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}