
com.amazonaws.services.snowball.model.CreateJobRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-snowball Show documentation
/*
* Copyright 2011-2016 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.snowball.model;
import java.io.Serializable;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
*/
public class CreateJobRequest extends AmazonWebServiceRequest implements
Serializable, Cloneable {
/**
*
* Defines the type of job that you're creating.
*
*/
private String jobType;
/**
*
* Defines the Amazon S3 buckets associated with this job.
*
*
* With IMPORT
jobs, you specify the bucket or buckets that
* your transferred data will be imported into.
*
*
* With EXPORT
jobs, you specify the bucket or buckets that
* your transferred data will be exported from. Optionally, you can also
* specify a KeyRange
value. If you choose to export a range,
* you define the length of the range by providing either an inclusive
* BeginMarker
value, an inclusive EndMarker
* value, or both. Ranges are UTF-8 binary sorted.
*
*/
private JobResource resources;
/**
*
* Defines an optional description of this specific job, for example
* Important Photos 2016-08-11
.
*
*/
private String description;
/**
*
* The ID for the address that you want the Snowball shipped to.
*
*/
private String addressId;
/**
*
* The KmsKeyARN
that you want to associate with this job.
* KmsKeyARN
s are created using the CreateKey AWS Key Management Service (KMS) API action.
*
*/
private String kmsKeyARN;
/**
*
* The RoleARN
that you want to associate with this job.
* RoleArn
s are created using the CreateRole AWS Identity and Access Management (IAM) API action.
*
*/
private String roleARN;
/**
*
* If your job is being created in one of the US regions, you have the
* option of specifying what size Snowball you'd like for this job. In all
* other regions, Snowballs come with 80 TB in storage capacity.
*
*/
private String snowballCapacityPreference;
/**
*
* The shipping speed for this job. Note that this speed does not dictate
* how soon you'll get the Snowball, rather it represents how quickly the
* Snowball moves to its destination while in transit. Regional shipping
* speeds are as follows:
*
*
* -
*
* In Australia, you have access to express shipping. Typically, Snowballs
* shipped express are delivered in about a day.
*
*
* -
*
* In the European Union (EU), you have access to express shipping.
* Typically, Snowballs shipped express are delivered in about a day. In
* addition, most countries in the EU have access to standard shipping,
* which typically takes less than a week, one way.
*
*
* -
*
* In India, Snowballs are delivered in one to seven days.
*
*
* -
*
* In the US, you have access to one-day shipping and two-day shipping.
*
*
*
*/
private String shippingOption;
/**
*
* Defines the Amazon Simple Notification Service (Amazon SNS) notification
* settings for this job.
*
*/
private Notification notification;
/**
*
* Defines the type of job that you're creating.
*
*
* @param jobType
* Defines the type of job that you're creating.
* @see JobType
*/
public void setJobType(String jobType) {
this.jobType = jobType;
}
/**
*
* Defines the type of job that you're creating.
*
*
* @return Defines the type of job that you're creating.
* @see JobType
*/
public String getJobType() {
return this.jobType;
}
/**
*
* Defines the type of job that you're creating.
*
*
* @param jobType
* Defines the type of job that you're creating.
* @return Returns a reference to this object so that method calls can be
* chained together.
* @see JobType
*/
public CreateJobRequest withJobType(String jobType) {
setJobType(jobType);
return this;
}
/**
*
* Defines the type of job that you're creating.
*
*
* @param jobType
* Defines the type of job that you're creating.
* @see JobType
*/
public void setJobType(JobType jobType) {
this.jobType = jobType.toString();
}
/**
*
* Defines the type of job that you're creating.
*
*
* @param jobType
* Defines the type of job that you're creating.
* @return Returns a reference to this object so that method calls can be
* chained together.
* @see JobType
*/
public CreateJobRequest withJobType(JobType jobType) {
setJobType(jobType);
return this;
}
/**
*
* Defines the Amazon S3 buckets associated with this job.
*
*
* With IMPORT
jobs, you specify the bucket or buckets that
* your transferred data will be imported into.
*
*
* With EXPORT
jobs, you specify the bucket or buckets that
* your transferred data will be exported from. Optionally, you can also
* specify a KeyRange
value. If you choose to export a range,
* you define the length of the range by providing either an inclusive
* BeginMarker
value, an inclusive EndMarker
* value, or both. Ranges are UTF-8 binary sorted.
*
*
* @param resources
* Defines the Amazon S3 buckets associated with this job.
*
* With IMPORT
jobs, you specify the bucket or buckets
* that your transferred data will be imported into.
*
*
* With EXPORT
jobs, you specify the bucket or buckets
* that your transferred data will be exported from. Optionally, you
* can also specify a KeyRange
value. If you choose to
* export a range, you define the length of the range by providing
* either an inclusive BeginMarker
value, an inclusive
* EndMarker
value, or both. Ranges are UTF-8 binary
* sorted.
*/
public void setResources(JobResource resources) {
this.resources = resources;
}
/**
*
* Defines the Amazon S3 buckets associated with this job.
*
*
* With IMPORT
jobs, you specify the bucket or buckets that
* your transferred data will be imported into.
*
*
* With EXPORT
jobs, you specify the bucket or buckets that
* your transferred data will be exported from. Optionally, you can also
* specify a KeyRange
value. If you choose to export a range,
* you define the length of the range by providing either an inclusive
* BeginMarker
value, an inclusive EndMarker
* value, or both. Ranges are UTF-8 binary sorted.
*
*
* @return Defines the Amazon S3 buckets associated with this job.
*
* With IMPORT
jobs, you specify the bucket or buckets
* that your transferred data will be imported into.
*
*
* With EXPORT
jobs, you specify the bucket or buckets
* that your transferred data will be exported from. Optionally, you
* can also specify a KeyRange
value. If you choose to
* export a range, you define the length of the range by providing
* either an inclusive BeginMarker
value, an inclusive
* EndMarker
value, or both. Ranges are UTF-8 binary
* sorted.
*/
public JobResource getResources() {
return this.resources;
}
/**
*
* Defines the Amazon S3 buckets associated with this job.
*
*
* With IMPORT
jobs, you specify the bucket or buckets that
* your transferred data will be imported into.
*
*
* With EXPORT
jobs, you specify the bucket or buckets that
* your transferred data will be exported from. Optionally, you can also
* specify a KeyRange
value. If you choose to export a range,
* you define the length of the range by providing either an inclusive
* BeginMarker
value, an inclusive EndMarker
* value, or both. Ranges are UTF-8 binary sorted.
*
*
* @param resources
* Defines the Amazon S3 buckets associated with this job.
*
* With IMPORT
jobs, you specify the bucket or buckets
* that your transferred data will be imported into.
*
*
* With EXPORT
jobs, you specify the bucket or buckets
* that your transferred data will be exported from. Optionally, you
* can also specify a KeyRange
value. If you choose to
* export a range, you define the length of the range by providing
* either an inclusive BeginMarker
value, an inclusive
* EndMarker
value, or both. Ranges are UTF-8 binary
* sorted.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateJobRequest withResources(JobResource resources) {
setResources(resources);
return this;
}
/**
*
* Defines an optional description of this specific job, for example
* Important Photos 2016-08-11
.
*
*
* @param description
* Defines an optional description of this specific job, for example
* Important Photos 2016-08-11
.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* Defines an optional description of this specific job, for example
* Important Photos 2016-08-11
.
*
*
* @return Defines an optional description of this specific job, for example
* Important Photos 2016-08-11
.
*/
public String getDescription() {
return this.description;
}
/**
*
* Defines an optional description of this specific job, for example
* Important Photos 2016-08-11
.
*
*
* @param description
* Defines an optional description of this specific job, for example
* Important Photos 2016-08-11
.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateJobRequest withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The ID for the address that you want the Snowball shipped to.
*
*
* @param addressId
* The ID for the address that you want the Snowball shipped to.
*/
public void setAddressId(String addressId) {
this.addressId = addressId;
}
/**
*
* The ID for the address that you want the Snowball shipped to.
*
*
* @return The ID for the address that you want the Snowball shipped to.
*/
public String getAddressId() {
return this.addressId;
}
/**
*
* The ID for the address that you want the Snowball shipped to.
*
*
* @param addressId
* The ID for the address that you want the Snowball shipped to.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateJobRequest withAddressId(String addressId) {
setAddressId(addressId);
return this;
}
/**
*
* The KmsKeyARN
that you want to associate with this job.
* KmsKeyARN
s are created using the CreateKey AWS Key Management Service (KMS) API action.
*
*
* @param kmsKeyARN
* The KmsKeyARN
that you want to associate with this
* job. KmsKeyARN
s are created using the CreateKey AWS Key Management Service (KMS) API action.
*/
public void setKmsKeyARN(String kmsKeyARN) {
this.kmsKeyARN = kmsKeyARN;
}
/**
*
* The KmsKeyARN
that you want to associate with this job.
* KmsKeyARN
s are created using the CreateKey AWS Key Management Service (KMS) API action.
*
*
* @return The KmsKeyARN
that you want to associate with this
* job. KmsKeyARN
s are created using the CreateKey AWS Key Management Service (KMS) API action.
*/
public String getKmsKeyARN() {
return this.kmsKeyARN;
}
/**
*
* The KmsKeyARN
that you want to associate with this job.
* KmsKeyARN
s are created using the CreateKey AWS Key Management Service (KMS) API action.
*
*
* @param kmsKeyARN
* The KmsKeyARN
that you want to associate with this
* job. KmsKeyARN
s are created using the CreateKey AWS Key Management Service (KMS) API action.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateJobRequest withKmsKeyARN(String kmsKeyARN) {
setKmsKeyARN(kmsKeyARN);
return this;
}
/**
*
* The RoleARN
that you want to associate with this job.
* RoleArn
s are created using the CreateRole AWS Identity and Access Management (IAM) API action.
*
*
* @param roleARN
* The RoleARN
that you want to associate with this job.
* RoleArn
s are created using the CreateRole AWS Identity and Access Management (IAM) API
* action.
*/
public void setRoleARN(String roleARN) {
this.roleARN = roleARN;
}
/**
*
* The RoleARN
that you want to associate with this job.
* RoleArn
s are created using the CreateRole AWS Identity and Access Management (IAM) API action.
*
*
* @return The RoleARN
that you want to associate with this
* job. RoleArn
s are created using the CreateRole AWS Identity and Access Management (IAM) API
* action.
*/
public String getRoleARN() {
return this.roleARN;
}
/**
*
* The RoleARN
that you want to associate with this job.
* RoleArn
s are created using the CreateRole AWS Identity and Access Management (IAM) API action.
*
*
* @param roleARN
* The RoleARN
that you want to associate with this job.
* RoleArn
s are created using the CreateRole AWS Identity and Access Management (IAM) API
* action.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateJobRequest withRoleARN(String roleARN) {
setRoleARN(roleARN);
return this;
}
/**
*
* If your job is being created in one of the US regions, you have the
* option of specifying what size Snowball you'd like for this job. In all
* other regions, Snowballs come with 80 TB in storage capacity.
*
*
* @param snowballCapacityPreference
* If your job is being created in one of the US regions, you have
* the option of specifying what size Snowball you'd like for this
* job. In all other regions, Snowballs come with 80 TB in storage
* capacity.
* @see SnowballCapacity
*/
public void setSnowballCapacityPreference(String snowballCapacityPreference) {
this.snowballCapacityPreference = snowballCapacityPreference;
}
/**
*
* If your job is being created in one of the US regions, you have the
* option of specifying what size Snowball you'd like for this job. In all
* other regions, Snowballs come with 80 TB in storage capacity.
*
*
* @return If your job is being created in one of the US regions, you have
* the option of specifying what size Snowball you'd like for this
* job. In all other regions, Snowballs come with 80 TB in storage
* capacity.
* @see SnowballCapacity
*/
public String getSnowballCapacityPreference() {
return this.snowballCapacityPreference;
}
/**
*
* If your job is being created in one of the US regions, you have the
* option of specifying what size Snowball you'd like for this job. In all
* other regions, Snowballs come with 80 TB in storage capacity.
*
*
* @param snowballCapacityPreference
* If your job is being created in one of the US regions, you have
* the option of specifying what size Snowball you'd like for this
* job. In all other regions, Snowballs come with 80 TB in storage
* capacity.
* @return Returns a reference to this object so that method calls can be
* chained together.
* @see SnowballCapacity
*/
public CreateJobRequest withSnowballCapacityPreference(
String snowballCapacityPreference) {
setSnowballCapacityPreference(snowballCapacityPreference);
return this;
}
/**
*
* If your job is being created in one of the US regions, you have the
* option of specifying what size Snowball you'd like for this job. In all
* other regions, Snowballs come with 80 TB in storage capacity.
*
*
* @param snowballCapacityPreference
* If your job is being created in one of the US regions, you have
* the option of specifying what size Snowball you'd like for this
* job. In all other regions, Snowballs come with 80 TB in storage
* capacity.
* @see SnowballCapacity
*/
public void setSnowballCapacityPreference(
SnowballCapacity snowballCapacityPreference) {
this.snowballCapacityPreference = snowballCapacityPreference.toString();
}
/**
*
* If your job is being created in one of the US regions, you have the
* option of specifying what size Snowball you'd like for this job. In all
* other regions, Snowballs come with 80 TB in storage capacity.
*
*
* @param snowballCapacityPreference
* If your job is being created in one of the US regions, you have
* the option of specifying what size Snowball you'd like for this
* job. In all other regions, Snowballs come with 80 TB in storage
* capacity.
* @return Returns a reference to this object so that method calls can be
* chained together.
* @see SnowballCapacity
*/
public CreateJobRequest withSnowballCapacityPreference(
SnowballCapacity snowballCapacityPreference) {
setSnowballCapacityPreference(snowballCapacityPreference);
return this;
}
/**
*
* The shipping speed for this job. Note that this speed does not dictate
* how soon you'll get the Snowball, rather it represents how quickly the
* Snowball moves to its destination while in transit. Regional shipping
* speeds are as follows:
*
*
* -
*
* In Australia, you have access to express shipping. Typically, Snowballs
* shipped express are delivered in about a day.
*
*
* -
*
* In the European Union (EU), you have access to express shipping.
* Typically, Snowballs shipped express are delivered in about a day. In
* addition, most countries in the EU have access to standard shipping,
* which typically takes less than a week, one way.
*
*
* -
*
* In India, Snowballs are delivered in one to seven days.
*
*
* -
*
* In the US, you have access to one-day shipping and two-day shipping.
*
*
*
*
* @param shippingOption
* The shipping speed for this job. Note that this speed does not
* dictate how soon you'll get the Snowball, rather it represents how
* quickly the Snowball moves to its destination while in transit.
* Regional shipping speeds are as follows:
*
* -
*
* In Australia, you have access to express shipping. Typically,
* Snowballs shipped express are delivered in about a day.
*
*
* -
*
* In the European Union (EU), you have access to express shipping.
* Typically, Snowballs shipped express are delivered in about a day.
* In addition, most countries in the EU have access to standard
* shipping, which typically takes less than a week, one way.
*
*
* -
*
* In India, Snowballs are delivered in one to seven days.
*
*
* -
*
* In the US, you have access to one-day shipping and two-day
* shipping.
*
*
* @see ShippingOption
*/
public void setShippingOption(String shippingOption) {
this.shippingOption = shippingOption;
}
/**
*
* The shipping speed for this job. Note that this speed does not dictate
* how soon you'll get the Snowball, rather it represents how quickly the
* Snowball moves to its destination while in transit. Regional shipping
* speeds are as follows:
*
*
* -
*
* In Australia, you have access to express shipping. Typically, Snowballs
* shipped express are delivered in about a day.
*
*
* -
*
* In the European Union (EU), you have access to express shipping.
* Typically, Snowballs shipped express are delivered in about a day. In
* addition, most countries in the EU have access to standard shipping,
* which typically takes less than a week, one way.
*
*
* -
*
* In India, Snowballs are delivered in one to seven days.
*
*
* -
*
* In the US, you have access to one-day shipping and two-day shipping.
*
*
*
*
* @return The shipping speed for this job. Note that this speed does not
* dictate how soon you'll get the Snowball, rather it represents
* how quickly the Snowball moves to its destination while in
* transit. Regional shipping speeds are as follows:
*
* -
*
* In Australia, you have access to express shipping. Typically,
* Snowballs shipped express are delivered in about a day.
*
*
* -
*
* In the European Union (EU), you have access to express shipping.
* Typically, Snowballs shipped express are delivered in about a
* day. In addition, most countries in the EU have access to
* standard shipping, which typically takes less than a week, one
* way.
*
*
* -
*
* In India, Snowballs are delivered in one to seven days.
*
*
* -
*
* In the US, you have access to one-day shipping and two-day
* shipping.
*
*
* @see ShippingOption
*/
public String getShippingOption() {
return this.shippingOption;
}
/**
*
* The shipping speed for this job. Note that this speed does not dictate
* how soon you'll get the Snowball, rather it represents how quickly the
* Snowball moves to its destination while in transit. Regional shipping
* speeds are as follows:
*
*
* -
*
* In Australia, you have access to express shipping. Typically, Snowballs
* shipped express are delivered in about a day.
*
*
* -
*
* In the European Union (EU), you have access to express shipping.
* Typically, Snowballs shipped express are delivered in about a day. In
* addition, most countries in the EU have access to standard shipping,
* which typically takes less than a week, one way.
*
*
* -
*
* In India, Snowballs are delivered in one to seven days.
*
*
* -
*
* In the US, you have access to one-day shipping and two-day shipping.
*
*
*
*
* @param shippingOption
* The shipping speed for this job. Note that this speed does not
* dictate how soon you'll get the Snowball, rather it represents how
* quickly the Snowball moves to its destination while in transit.
* Regional shipping speeds are as follows:
*
* -
*
* In Australia, you have access to express shipping. Typically,
* Snowballs shipped express are delivered in about a day.
*
*
* -
*
* In the European Union (EU), you have access to express shipping.
* Typically, Snowballs shipped express are delivered in about a day.
* In addition, most countries in the EU have access to standard
* shipping, which typically takes less than a week, one way.
*
*
* -
*
* In India, Snowballs are delivered in one to seven days.
*
*
* -
*
* In the US, you have access to one-day shipping and two-day
* shipping.
*
*
* @return Returns a reference to this object so that method calls can be
* chained together.
* @see ShippingOption
*/
public CreateJobRequest withShippingOption(String shippingOption) {
setShippingOption(shippingOption);
return this;
}
/**
*
* The shipping speed for this job. Note that this speed does not dictate
* how soon you'll get the Snowball, rather it represents how quickly the
* Snowball moves to its destination while in transit. Regional shipping
* speeds are as follows:
*
*
* -
*
* In Australia, you have access to express shipping. Typically, Snowballs
* shipped express are delivered in about a day.
*
*
* -
*
* In the European Union (EU), you have access to express shipping.
* Typically, Snowballs shipped express are delivered in about a day. In
* addition, most countries in the EU have access to standard shipping,
* which typically takes less than a week, one way.
*
*
* -
*
* In India, Snowballs are delivered in one to seven days.
*
*
* -
*
* In the US, you have access to one-day shipping and two-day shipping.
*
*
*
*
* @param shippingOption
* The shipping speed for this job. Note that this speed does not
* dictate how soon you'll get the Snowball, rather it represents how
* quickly the Snowball moves to its destination while in transit.
* Regional shipping speeds are as follows:
*
* -
*
* In Australia, you have access to express shipping. Typically,
* Snowballs shipped express are delivered in about a day.
*
*
* -
*
* In the European Union (EU), you have access to express shipping.
* Typically, Snowballs shipped express are delivered in about a day.
* In addition, most countries in the EU have access to standard
* shipping, which typically takes less than a week, one way.
*
*
* -
*
* In India, Snowballs are delivered in one to seven days.
*
*
* -
*
* In the US, you have access to one-day shipping and two-day
* shipping.
*
*
* @see ShippingOption
*/
public void setShippingOption(ShippingOption shippingOption) {
this.shippingOption = shippingOption.toString();
}
/**
*
* The shipping speed for this job. Note that this speed does not dictate
* how soon you'll get the Snowball, rather it represents how quickly the
* Snowball moves to its destination while in transit. Regional shipping
* speeds are as follows:
*
*
* -
*
* In Australia, you have access to express shipping. Typically, Snowballs
* shipped express are delivered in about a day.
*
*
* -
*
* In the European Union (EU), you have access to express shipping.
* Typically, Snowballs shipped express are delivered in about a day. In
* addition, most countries in the EU have access to standard shipping,
* which typically takes less than a week, one way.
*
*
* -
*
* In India, Snowballs are delivered in one to seven days.
*
*
* -
*
* In the US, you have access to one-day shipping and two-day shipping.
*
*
*
*
* @param shippingOption
* The shipping speed for this job. Note that this speed does not
* dictate how soon you'll get the Snowball, rather it represents how
* quickly the Snowball moves to its destination while in transit.
* Regional shipping speeds are as follows:
*
* -
*
* In Australia, you have access to express shipping. Typically,
* Snowballs shipped express are delivered in about a day.
*
*
* -
*
* In the European Union (EU), you have access to express shipping.
* Typically, Snowballs shipped express are delivered in about a day.
* In addition, most countries in the EU have access to standard
* shipping, which typically takes less than a week, one way.
*
*
* -
*
* In India, Snowballs are delivered in one to seven days.
*
*
* -
*
* In the US, you have access to one-day shipping and two-day
* shipping.
*
*
* @return Returns a reference to this object so that method calls can be
* chained together.
* @see ShippingOption
*/
public CreateJobRequest withShippingOption(ShippingOption shippingOption) {
setShippingOption(shippingOption);
return this;
}
/**
*
* Defines the Amazon Simple Notification Service (Amazon SNS) notification
* settings for this job.
*
*
* @param notification
* Defines the Amazon Simple Notification Service (Amazon SNS)
* notification settings for this job.
*/
public void setNotification(Notification notification) {
this.notification = notification;
}
/**
*
* Defines the Amazon Simple Notification Service (Amazon SNS) notification
* settings for this job.
*
*
* @return Defines the Amazon Simple Notification Service (Amazon SNS)
* notification settings for this job.
*/
public Notification getNotification() {
return this.notification;
}
/**
*
* Defines the Amazon Simple Notification Service (Amazon SNS) notification
* settings for this job.
*
*
* @param notification
* Defines the Amazon Simple Notification Service (Amazon SNS)
* notification settings for this job.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public CreateJobRequest withNotification(Notification notification) {
setNotification(notification);
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 (getJobType() != null)
sb.append("JobType: " + getJobType() + ",");
if (getResources() != null)
sb.append("Resources: " + getResources() + ",");
if (getDescription() != null)
sb.append("Description: " + getDescription() + ",");
if (getAddressId() != null)
sb.append("AddressId: " + getAddressId() + ",");
if (getKmsKeyARN() != null)
sb.append("KmsKeyARN: " + getKmsKeyARN() + ",");
if (getRoleARN() != null)
sb.append("RoleARN: " + getRoleARN() + ",");
if (getSnowballCapacityPreference() != null)
sb.append("SnowballCapacityPreference: "
+ getSnowballCapacityPreference() + ",");
if (getShippingOption() != null)
sb.append("ShippingOption: " + getShippingOption() + ",");
if (getNotification() != null)
sb.append("Notification: " + getNotification());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateJobRequest == false)
return false;
CreateJobRequest other = (CreateJobRequest) obj;
if (other.getJobType() == null ^ this.getJobType() == null)
return false;
if (other.getJobType() != null
&& other.getJobType().equals(this.getJobType()) == false)
return false;
if (other.getResources() == null ^ this.getResources() == null)
return false;
if (other.getResources() != null
&& other.getResources().equals(this.getResources()) == false)
return false;
if (other.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null
&& other.getDescription().equals(this.getDescription()) == false)
return false;
if (other.getAddressId() == null ^ this.getAddressId() == null)
return false;
if (other.getAddressId() != null
&& other.getAddressId().equals(this.getAddressId()) == false)
return false;
if (other.getKmsKeyARN() == null ^ this.getKmsKeyARN() == null)
return false;
if (other.getKmsKeyARN() != null
&& other.getKmsKeyARN().equals(this.getKmsKeyARN()) == false)
return false;
if (other.getRoleARN() == null ^ this.getRoleARN() == null)
return false;
if (other.getRoleARN() != null
&& other.getRoleARN().equals(this.getRoleARN()) == false)
return false;
if (other.getSnowballCapacityPreference() == null
^ this.getSnowballCapacityPreference() == null)
return false;
if (other.getSnowballCapacityPreference() != null
&& other.getSnowballCapacityPreference().equals(
this.getSnowballCapacityPreference()) == false)
return false;
if (other.getShippingOption() == null
^ this.getShippingOption() == null)
return false;
if (other.getShippingOption() != null
&& other.getShippingOption().equals(this.getShippingOption()) == false)
return false;
if (other.getNotification() == null ^ this.getNotification() == null)
return false;
if (other.getNotification() != null
&& other.getNotification().equals(this.getNotification()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode
+ ((getJobType() == null) ? 0 : getJobType().hashCode());
hashCode = prime * hashCode
+ ((getResources() == null) ? 0 : getResources().hashCode());
hashCode = prime
* hashCode
+ ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode
+ ((getAddressId() == null) ? 0 : getAddressId().hashCode());
hashCode = prime * hashCode
+ ((getKmsKeyARN() == null) ? 0 : getKmsKeyARN().hashCode());
hashCode = prime * hashCode
+ ((getRoleARN() == null) ? 0 : getRoleARN().hashCode());
hashCode = prime
* hashCode
+ ((getSnowballCapacityPreference() == null) ? 0
: getSnowballCapacityPreference().hashCode());
hashCode = prime
* hashCode
+ ((getShippingOption() == null) ? 0 : getShippingOption()
.hashCode());
hashCode = prime
* hashCode
+ ((getNotification() == null) ? 0 : getNotification()
.hashCode());
return hashCode;
}
@Override
public CreateJobRequest clone() {
return (CreateJobRequest) super.clone();
}
}