com.amazonaws.services.greengrass.model.CreateDeviceDefinitionRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-java-sdk-greengrass Show documentation
Show all versions of aws-java-sdk-greengrass Show documentation
The AWS Java SDK for AWS Greengrass module holds the client classes that are used for communicating with AWS Greengrass Service
/*
* Copyright 2012-2017 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.greengrass.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateDeviceDefinitionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/** The client token used to request idempotent operations. */
private String amznClientToken;
/** Information on the initial version */
private DeviceDefinitionVersion initialVersion;
/** name of the device definition */
private String name;
/**
* The client token used to request idempotent operations.
*
* @param amznClientToken
* The client token used to request idempotent operations.
*/
public void setAmznClientToken(String amznClientToken) {
this.amznClientToken = amznClientToken;
}
/**
* The client token used to request idempotent operations.
*
* @return The client token used to request idempotent operations.
*/
public String getAmznClientToken() {
return this.amznClientToken;
}
/**
* The client token used to request idempotent operations.
*
* @param amznClientToken
* The client token used to request idempotent operations.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDeviceDefinitionRequest withAmznClientToken(String amznClientToken) {
setAmznClientToken(amznClientToken);
return this;
}
/**
* Information on the initial version
*
* @param initialVersion
* Information on the initial version
*/
public void setInitialVersion(DeviceDefinitionVersion initialVersion) {
this.initialVersion = initialVersion;
}
/**
* Information on the initial version
*
* @return Information on the initial version
*/
public DeviceDefinitionVersion getInitialVersion() {
return this.initialVersion;
}
/**
* Information on the initial version
*
* @param initialVersion
* Information on the initial version
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDeviceDefinitionRequest withInitialVersion(DeviceDefinitionVersion initialVersion) {
setInitialVersion(initialVersion);
return this;
}
/**
* name of the device definition
*
* @param name
* name of the device definition
*/
public void setName(String name) {
this.name = name;
}
/**
* name of the device definition
*
* @return name of the device definition
*/
public String getName() {
return this.name;
}
/**
* name of the device definition
*
* @param name
* name of the device definition
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDeviceDefinitionRequest withName(String name) {
setName(name);
return this;
}
/**
* Returns a string representation of this object; useful for testing and debugging.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getAmznClientToken() != null)
sb.append("AmznClientToken: ").append(getAmznClientToken()).append(",");
if (getInitialVersion() != null)
sb.append("InitialVersion: ").append(getInitialVersion()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateDeviceDefinitionRequest == false)
return false;
CreateDeviceDefinitionRequest other = (CreateDeviceDefinitionRequest) obj;
if (other.getAmznClientToken() == null ^ this.getAmznClientToken() == null)
return false;
if (other.getAmznClientToken() != null && other.getAmznClientToken().equals(this.getAmznClientToken()) == false)
return false;
if (other.getInitialVersion() == null ^ this.getInitialVersion() == null)
return false;
if (other.getInitialVersion() != null && other.getInitialVersion().equals(this.getInitialVersion()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAmznClientToken() == null) ? 0 : getAmznClientToken().hashCode());
hashCode = prime * hashCode + ((getInitialVersion() == null) ? 0 : getInitialVersion().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
return hashCode;
}
@Override
public CreateDeviceDefinitionRequest clone() {
return (CreateDeviceDefinitionRequest) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy