All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.panorama.model.CreatePackageImportJobRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Panorama module holds the client classes that are used for communicating with AWS Panorama Service

There is a newer version: 1.12.780
Show newest version
/*
 * 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.AmazonWebServiceRequest;

/**
 * 
 * @see AWS
 *      API Documentation
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreatePackageImportJobRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* A client token for the package import job. *

*/ private String clientToken; /** *

* An input config for the package import job. *

*/ private PackageImportJobInputConfig inputConfig; /** *

* Tags for the package import job. *

*/ private java.util.List jobTags; /** *

* A job type for the package import job. *

*/ private String jobType; /** *

* An output config for the package import job. *

*/ private PackageImportJobOutputConfig outputConfig; /** *

* A client token for the package import job. *

* * @param clientToken * A client token for the package import job. */ public void setClientToken(String clientToken) { this.clientToken = clientToken; } /** *

* A client token for the package import job. *

* * @return A client token for the package import job. */ public String getClientToken() { return this.clientToken; } /** *

* A client token for the package import job. *

* * @param clientToken * A client token for the package import job. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePackageImportJobRequest withClientToken(String clientToken) { setClientToken(clientToken); return this; } /** *

* An input config for the package import job. *

* * @param inputConfig * An input config for the package import job. */ public void setInputConfig(PackageImportJobInputConfig inputConfig) { this.inputConfig = inputConfig; } /** *

* An input config for the package import job. *

* * @return An input config for the package import job. */ public PackageImportJobInputConfig getInputConfig() { return this.inputConfig; } /** *

* An input config for the package import job. *

* * @param inputConfig * An input config for the package import job. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePackageImportJobRequest withInputConfig(PackageImportJobInputConfig inputConfig) { setInputConfig(inputConfig); return this; } /** *

* Tags for the package import job. *

* * @return Tags for the package import job. */ public java.util.List getJobTags() { return jobTags; } /** *

* Tags for the package import job. *

* * @param jobTags * Tags for the package import job. */ public void setJobTags(java.util.Collection jobTags) { if (jobTags == null) { this.jobTags = null; return; } this.jobTags = new java.util.ArrayList(jobTags); } /** *

* Tags for the package import job. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setJobTags(java.util.Collection)} or {@link #withJobTags(java.util.Collection)} if you want to override * the existing values. *

* * @param jobTags * Tags for the package import job. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePackageImportJobRequest withJobTags(JobResourceTags... jobTags) { if (this.jobTags == null) { setJobTags(new java.util.ArrayList(jobTags.length)); } for (JobResourceTags ele : jobTags) { this.jobTags.add(ele); } return this; } /** *

* Tags for the package import job. *

* * @param jobTags * Tags for the package import job. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePackageImportJobRequest withJobTags(java.util.Collection jobTags) { setJobTags(jobTags); return this; } /** *

* A job type for the package import job. *

* * @param jobType * A job type for the package import job. * @see PackageImportJobType */ public void setJobType(String jobType) { this.jobType = jobType; } /** *

* A job type for the package import job. *

* * @return A job type for the package import job. * @see PackageImportJobType */ public String getJobType() { return this.jobType; } /** *

* A job type for the package import job. *

* * @param jobType * A job type for the package import job. * @return Returns a reference to this object so that method calls can be chained together. * @see PackageImportJobType */ public CreatePackageImportJobRequest withJobType(String jobType) { setJobType(jobType); return this; } /** *

* A job type for the package import job. *

* * @param jobType * A job type for the package import job. * @return Returns a reference to this object so that method calls can be chained together. * @see PackageImportJobType */ public CreatePackageImportJobRequest withJobType(PackageImportJobType jobType) { this.jobType = jobType.toString(); return this; } /** *

* An output config for the package import job. *

* * @param outputConfig * An output config for the package import job. */ public void setOutputConfig(PackageImportJobOutputConfig outputConfig) { this.outputConfig = outputConfig; } /** *

* An output config for the package import job. *

* * @return An output config for the package import job. */ public PackageImportJobOutputConfig getOutputConfig() { return this.outputConfig; } /** *

* An output config for the package import job. *

* * @param outputConfig * An output config for the package import job. * @return Returns a reference to this object so that method calls can be chained together. */ public CreatePackageImportJobRequest withOutputConfig(PackageImportJobOutputConfig outputConfig) { setOutputConfig(outputConfig); 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 (getClientToken() != null) sb.append("ClientToken: ").append(getClientToken()).append(","); if (getInputConfig() != null) sb.append("InputConfig: ").append(getInputConfig()).append(","); if (getJobTags() != null) sb.append("JobTags: ").append(getJobTags()).append(","); if (getJobType() != null) sb.append("JobType: ").append(getJobType()).append(","); if (getOutputConfig() != null) sb.append("OutputConfig: ").append(getOutputConfig()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreatePackageImportJobRequest == false) return false; CreatePackageImportJobRequest other = (CreatePackageImportJobRequest) obj; if (other.getClientToken() == null ^ this.getClientToken() == null) return false; if (other.getClientToken() != null && other.getClientToken().equals(this.getClientToken()) == false) return false; if (other.getInputConfig() == null ^ this.getInputConfig() == null) return false; if (other.getInputConfig() != null && other.getInputConfig().equals(this.getInputConfig()) == false) return false; if (other.getJobTags() == null ^ this.getJobTags() == null) return false; if (other.getJobTags() != null && other.getJobTags().equals(this.getJobTags()) == false) return false; if (other.getJobType() == null ^ this.getJobType() == null) return false; if (other.getJobType() != null && other.getJobType().equals(this.getJobType()) == false) return false; if (other.getOutputConfig() == null ^ this.getOutputConfig() == null) return false; if (other.getOutputConfig() != null && other.getOutputConfig().equals(this.getOutputConfig()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode()); hashCode = prime * hashCode + ((getInputConfig() == null) ? 0 : getInputConfig().hashCode()); hashCode = prime * hashCode + ((getJobTags() == null) ? 0 : getJobTags().hashCode()); hashCode = prime * hashCode + ((getJobType() == null) ? 0 : getJobType().hashCode()); hashCode = prime * hashCode + ((getOutputConfig() == null) ? 0 : getOutputConfig().hashCode()); return hashCode; } @Override public CreatePackageImportJobRequest clone() { return (CreatePackageImportJobRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy