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

com.amazonaws.services.sagemaker.model.ModelClientConfig Maven / Gradle / Ivy

/*
 * 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.sagemaker.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Configures the timeout and maximum number of retries for processing a transform job invocation. *

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

* The timeout value in seconds for an invocation request. The default value is 600. *

*/ private Integer invocationsTimeoutInSeconds; /** *

* The maximum number of retries when invocation requests are failing. The default value is 3. *

*/ private Integer invocationsMaxRetries; /** *

* The timeout value in seconds for an invocation request. The default value is 600. *

* * @param invocationsTimeoutInSeconds * The timeout value in seconds for an invocation request. The default value is 600. */ public void setInvocationsTimeoutInSeconds(Integer invocationsTimeoutInSeconds) { this.invocationsTimeoutInSeconds = invocationsTimeoutInSeconds; } /** *

* The timeout value in seconds for an invocation request. The default value is 600. *

* * @return The timeout value in seconds for an invocation request. The default value is 600. */ public Integer getInvocationsTimeoutInSeconds() { return this.invocationsTimeoutInSeconds; } /** *

* The timeout value in seconds for an invocation request. The default value is 600. *

* * @param invocationsTimeoutInSeconds * The timeout value in seconds for an invocation request. The default value is 600. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelClientConfig withInvocationsTimeoutInSeconds(Integer invocationsTimeoutInSeconds) { setInvocationsTimeoutInSeconds(invocationsTimeoutInSeconds); return this; } /** *

* The maximum number of retries when invocation requests are failing. The default value is 3. *

* * @param invocationsMaxRetries * The maximum number of retries when invocation requests are failing. The default value is 3. */ public void setInvocationsMaxRetries(Integer invocationsMaxRetries) { this.invocationsMaxRetries = invocationsMaxRetries; } /** *

* The maximum number of retries when invocation requests are failing. The default value is 3. *

* * @return The maximum number of retries when invocation requests are failing. The default value is 3. */ public Integer getInvocationsMaxRetries() { return this.invocationsMaxRetries; } /** *

* The maximum number of retries when invocation requests are failing. The default value is 3. *

* * @param invocationsMaxRetries * The maximum number of retries when invocation requests are failing. The default value is 3. * @return Returns a reference to this object so that method calls can be chained together. */ public ModelClientConfig withInvocationsMaxRetries(Integer invocationsMaxRetries) { setInvocationsMaxRetries(invocationsMaxRetries); 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 (getInvocationsTimeoutInSeconds() != null) sb.append("InvocationsTimeoutInSeconds: ").append(getInvocationsTimeoutInSeconds()).append(","); if (getInvocationsMaxRetries() != null) sb.append("InvocationsMaxRetries: ").append(getInvocationsMaxRetries()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ModelClientConfig == false) return false; ModelClientConfig other = (ModelClientConfig) obj; if (other.getInvocationsTimeoutInSeconds() == null ^ this.getInvocationsTimeoutInSeconds() == null) return false; if (other.getInvocationsTimeoutInSeconds() != null && other.getInvocationsTimeoutInSeconds().equals(this.getInvocationsTimeoutInSeconds()) == false) return false; if (other.getInvocationsMaxRetries() == null ^ this.getInvocationsMaxRetries() == null) return false; if (other.getInvocationsMaxRetries() != null && other.getInvocationsMaxRetries().equals(this.getInvocationsMaxRetries()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInvocationsTimeoutInSeconds() == null) ? 0 : getInvocationsTimeoutInSeconds().hashCode()); hashCode = prime * hashCode + ((getInvocationsMaxRetries() == null) ? 0 : getInvocationsMaxRetries().hashCode()); return hashCode; } @Override public ModelClientConfig clone() { try { return (ModelClientConfig) 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.sagemaker.model.transform.ModelClientConfigMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy