com.amazonaws.services.panorama.model.OTAJobConfig Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-panorama Show documentation
Show all versions of aws-java-sdk-panorama Show documentation
The AWS Java SDK for AWS Panorama module holds the client classes that are used for communicating with AWS Panorama Service
/*
* 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.panorama.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* An over-the-air update (OTA) job configuration.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class OTAJobConfig implements Serializable, Cloneable, StructuredPojo {
/**
*
* Whether to apply the update if it is a major version change.
*
*/
private Boolean allowMajorVersionUpdate;
/**
*
* The target version of the device software.
*
*/
private String imageVersion;
/**
*
* Whether to apply the update if it is a major version change.
*
*
* @param allowMajorVersionUpdate
* Whether to apply the update if it is a major version change.
*/
public void setAllowMajorVersionUpdate(Boolean allowMajorVersionUpdate) {
this.allowMajorVersionUpdate = allowMajorVersionUpdate;
}
/**
*
* Whether to apply the update if it is a major version change.
*
*
* @return Whether to apply the update if it is a major version change.
*/
public Boolean getAllowMajorVersionUpdate() {
return this.allowMajorVersionUpdate;
}
/**
*
* Whether to apply the update if it is a major version change.
*
*
* @param allowMajorVersionUpdate
* Whether to apply the update if it is a major version change.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public OTAJobConfig withAllowMajorVersionUpdate(Boolean allowMajorVersionUpdate) {
setAllowMajorVersionUpdate(allowMajorVersionUpdate);
return this;
}
/**
*
* Whether to apply the update if it is a major version change.
*
*
* @return Whether to apply the update if it is a major version change.
*/
public Boolean isAllowMajorVersionUpdate() {
return this.allowMajorVersionUpdate;
}
/**
*
* The target version of the device software.
*
*
* @param imageVersion
* The target version of the device software.
*/
public void setImageVersion(String imageVersion) {
this.imageVersion = imageVersion;
}
/**
*
* The target version of the device software.
*
*
* @return The target version of the device software.
*/
public String getImageVersion() {
return this.imageVersion;
}
/**
*
* The target version of the device software.
*
*
* @param imageVersion
* The target version of the device software.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public OTAJobConfig withImageVersion(String imageVersion) {
setImageVersion(imageVersion);
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 (getAllowMajorVersionUpdate() != null)
sb.append("AllowMajorVersionUpdate: ").append(getAllowMajorVersionUpdate()).append(",");
if (getImageVersion() != null)
sb.append("ImageVersion: ").append(getImageVersion());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof OTAJobConfig == false)
return false;
OTAJobConfig other = (OTAJobConfig) obj;
if (other.getAllowMajorVersionUpdate() == null ^ this.getAllowMajorVersionUpdate() == null)
return false;
if (other.getAllowMajorVersionUpdate() != null && other.getAllowMajorVersionUpdate().equals(this.getAllowMajorVersionUpdate()) == false)
return false;
if (other.getImageVersion() == null ^ this.getImageVersion() == null)
return false;
if (other.getImageVersion() != null && other.getImageVersion().equals(this.getImageVersion()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAllowMajorVersionUpdate() == null) ? 0 : getAllowMajorVersionUpdate().hashCode());
hashCode = prime * hashCode + ((getImageVersion() == null) ? 0 : getImageVersion().hashCode());
return hashCode;
}
@Override
public OTAJobConfig clone() {
try {
return (OTAJobConfig) 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.panorama.model.transform.OTAJobConfigMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy