/* * Copyright 2018-2023 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.lookoutequipment.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Specifies configuration information for the input data for the inference, including Amazon S3 location of input * data.. *

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

* Specifies configuration information for the input data for the inference, including Amazon S3 location of input * data. *

*/ private InferenceS3InputConfiguration s3InputConfiguration; /** *

* Indicates the difference between your time zone and Coordinated Universal Time (UTC). *

*/ private String inputTimeZoneOffset; /** *

* Specifies configuration information for the input data for the inference, including timestamp format and * delimiter. *

*/ private InferenceInputNameConfiguration inferenceInputNameConfiguration; /** *

* Specifies configuration information for the input data for the inference, including Amazon S3 location of input * data. *

* * @param s3InputConfiguration * Specifies configuration information for the input data for the inference, including Amazon S3 location of * input data. */ public void setS3InputConfiguration(InferenceS3InputConfiguration s3InputConfiguration) { this.s3InputConfiguration = s3InputConfiguration; } /** *

* Specifies configuration information for the input data for the inference, including Amazon S3 location of input * data. *

* * @return Specifies configuration information for the input data for the inference, including Amazon S3 location of * input data. */ public InferenceS3InputConfiguration getS3InputConfiguration() { return this.s3InputConfiguration; } /** *

* Specifies configuration information for the input data for the inference, including Amazon S3 location of input * data. *

* * @param s3InputConfiguration * Specifies configuration information for the input data for the inference, including Amazon S3 location of * input data. * @return Returns a reference to this object so that method calls can be chained together. */ public InferenceInputConfiguration withS3InputConfiguration(InferenceS3InputConfiguration s3InputConfiguration) { setS3InputConfiguration(s3InputConfiguration); return this; } /** *

* Indicates the difference between your time zone and Coordinated Universal Time (UTC). *

* * @param inputTimeZoneOffset * Indicates the difference between your time zone and Coordinated Universal Time (UTC). */ public void setInputTimeZoneOffset(String inputTimeZoneOffset) { this.inputTimeZoneOffset = inputTimeZoneOffset; } /** *

* Indicates the difference between your time zone and Coordinated Universal Time (UTC). *

* * @return Indicates the difference between your time zone and Coordinated Universal Time (UTC). */ public String getInputTimeZoneOffset() { return this.inputTimeZoneOffset; } /** *

* Indicates the difference between your time zone and Coordinated Universal Time (UTC). *

* * @param inputTimeZoneOffset * Indicates the difference between your time zone and Coordinated Universal Time (UTC). * @return Returns a reference to this object so that method calls can be chained together. */ public InferenceInputConfiguration withInputTimeZoneOffset(String inputTimeZoneOffset) { setInputTimeZoneOffset(inputTimeZoneOffset); return this; } /** *

* Specifies configuration information for the input data for the inference, including timestamp format and * delimiter. *

* * @param inferenceInputNameConfiguration * Specifies configuration information for the input data for the inference, including timestamp format and * delimiter. */ public void setInferenceInputNameConfiguration(InferenceInputNameConfiguration inferenceInputNameConfiguration) { this.inferenceInputNameConfiguration = inferenceInputNameConfiguration; } /** *

* Specifies configuration information for the input data for the inference, including timestamp format and * delimiter. *

* * @return Specifies configuration information for the input data for the inference, including timestamp format and * delimiter. */ public InferenceInputNameConfiguration getInferenceInputNameConfiguration() { return this.inferenceInputNameConfiguration; } /** *

* Specifies configuration information for the input data for the inference, including timestamp format and * delimiter. *

* * @param inferenceInputNameConfiguration * Specifies configuration information for the input data for the inference, including timestamp format and * delimiter. * @return Returns a reference to this object so that method calls can be chained together. */ public InferenceInputConfiguration withInferenceInputNameConfiguration(InferenceInputNameConfiguration inferenceInputNameConfiguration) { setInferenceInputNameConfiguration(inferenceInputNameConfiguration); 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 (getS3InputConfiguration() != null) sb.append("S3InputConfiguration: ").append(getS3InputConfiguration()).append(","); if (getInputTimeZoneOffset() != null) sb.append("InputTimeZoneOffset: ").append(getInputTimeZoneOffset()).append(","); if (getInferenceInputNameConfiguration() != null) sb.append("InferenceInputNameConfiguration: ").append(getInferenceInputNameConfiguration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof InferenceInputConfiguration == false) return false; InferenceInputConfiguration other = (InferenceInputConfiguration) obj; if (other.getS3InputConfiguration() == null ^ this.getS3InputConfiguration() == null) return false; if (other.getS3InputConfiguration() != null && other.getS3InputConfiguration().equals(this.getS3InputConfiguration()) == false) return false; if (other.getInputTimeZoneOffset() == null ^ this.getInputTimeZoneOffset() == null) return false; if (other.getInputTimeZoneOffset() != null && other.getInputTimeZoneOffset().equals(this.getInputTimeZoneOffset()) == false) return false; if (other.getInferenceInputNameConfiguration() == null ^ this.getInferenceInputNameConfiguration() == null) return false; if (other.getInferenceInputNameConfiguration() != null && other.getInferenceInputNameConfiguration().equals(this.getInferenceInputNameConfiguration()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getS3InputConfiguration() == null) ? 0 : getS3InputConfiguration().hashCode()); hashCode = prime * hashCode + ((getInputTimeZoneOffset() == null) ? 0 : getInputTimeZoneOffset().hashCode()); hashCode = prime * hashCode + ((getInferenceInputNameConfiguration() == null) ? 0 : getInferenceInputNameConfiguration().hashCode()); return hashCode; } @Override public InferenceInputConfiguration clone() { try { return (InferenceInputConfiguration) 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.lookoutequipment.model.transform.InferenceInputConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }