
com.amazonaws.services.nimblestudio.model.LaunchProfileInitializationScript Maven / Gradle / Ivy
/*
* Copyright 2016-2021 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.nimblestudio.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class LaunchProfileInitializationScript implements Serializable, Cloneable, StructuredPojo {
/**
*
* The initialization script.
*
*/
private String script;
/**
*
* The unique identifier for a studio component resource.
*
*/
private String studioComponentId;
/**
*
* The name for the studio component.
*
*/
private String studioComponentName;
/**
*
* The initialization script.
*
*
* @param script
* The initialization script.
*/
public void setScript(String script) {
this.script = script;
}
/**
*
* The initialization script.
*
*
* @return The initialization script.
*/
public String getScript() {
return this.script;
}
/**
*
* The initialization script.
*
*
* @param script
* The initialization script.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LaunchProfileInitializationScript withScript(String script) {
setScript(script);
return this;
}
/**
*
* The unique identifier for a studio component resource.
*
*
* @param studioComponentId
* The unique identifier for a studio component resource.
*/
public void setStudioComponentId(String studioComponentId) {
this.studioComponentId = studioComponentId;
}
/**
*
* The unique identifier for a studio component resource.
*
*
* @return The unique identifier for a studio component resource.
*/
public String getStudioComponentId() {
return this.studioComponentId;
}
/**
*
* The unique identifier for a studio component resource.
*
*
* @param studioComponentId
* The unique identifier for a studio component resource.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LaunchProfileInitializationScript withStudioComponentId(String studioComponentId) {
setStudioComponentId(studioComponentId);
return this;
}
/**
*
* The name for the studio component.
*
*
* @param studioComponentName
* The name for the studio component.
*/
public void setStudioComponentName(String studioComponentName) {
this.studioComponentName = studioComponentName;
}
/**
*
* The name for the studio component.
*
*
* @return The name for the studio component.
*/
public String getStudioComponentName() {
return this.studioComponentName;
}
/**
*
* The name for the studio component.
*
*
* @param studioComponentName
* The name for the studio component.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LaunchProfileInitializationScript withStudioComponentName(String studioComponentName) {
setStudioComponentName(studioComponentName);
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 (getScript() != null)
sb.append("Script: ").append("***Sensitive Data Redacted***").append(",");
if (getStudioComponentId() != null)
sb.append("StudioComponentId: ").append(getStudioComponentId()).append(",");
if (getStudioComponentName() != null)
sb.append("StudioComponentName: ").append("***Sensitive Data Redacted***");
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof LaunchProfileInitializationScript == false)
return false;
LaunchProfileInitializationScript other = (LaunchProfileInitializationScript) obj;
if (other.getScript() == null ^ this.getScript() == null)
return false;
if (other.getScript() != null && other.getScript().equals(this.getScript()) == false)
return false;
if (other.getStudioComponentId() == null ^ this.getStudioComponentId() == null)
return false;
if (other.getStudioComponentId() != null && other.getStudioComponentId().equals(this.getStudioComponentId()) == false)
return false;
if (other.getStudioComponentName() == null ^ this.getStudioComponentName() == null)
return false;
if (other.getStudioComponentName() != null && other.getStudioComponentName().equals(this.getStudioComponentName()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getScript() == null) ? 0 : getScript().hashCode());
hashCode = prime * hashCode + ((getStudioComponentId() == null) ? 0 : getStudioComponentId().hashCode());
hashCode = prime * hashCode + ((getStudioComponentName() == null) ? 0 : getStudioComponentName().hashCode());
return hashCode;
}
@Override
public LaunchProfileInitializationScript clone() {
try {
return (LaunchProfileInitializationScript) 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.nimblestudio.model.transform.LaunchProfileInitializationScriptMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy