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

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

Go to download

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

The 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.sagemaker.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 CreateHubContentReferenceRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The name of the hub to add the hub content reference to. *

*/ private String hubName; /** *

* The ARN of the public hub content to reference. *

*/ private String sageMakerPublicHubContentArn; /** *

* The name of the hub content to reference. *

*/ private String hubContentName; /** *

* The minimum version of the hub content to reference. *

*/ private String minVersion; /** *

* Any tags associated with the hub content to reference. *

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

* The name of the hub to add the hub content reference to. *

* * @param hubName * The name of the hub to add the hub content reference to. */ public void setHubName(String hubName) { this.hubName = hubName; } /** *

* The name of the hub to add the hub content reference to. *

* * @return The name of the hub to add the hub content reference to. */ public String getHubName() { return this.hubName; } /** *

* The name of the hub to add the hub content reference to. *

* * @param hubName * The name of the hub to add the hub content reference to. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateHubContentReferenceRequest withHubName(String hubName) { setHubName(hubName); return this; } /** *

* The ARN of the public hub content to reference. *

* * @param sageMakerPublicHubContentArn * The ARN of the public hub content to reference. */ public void setSageMakerPublicHubContentArn(String sageMakerPublicHubContentArn) { this.sageMakerPublicHubContentArn = sageMakerPublicHubContentArn; } /** *

* The ARN of the public hub content to reference. *

* * @return The ARN of the public hub content to reference. */ public String getSageMakerPublicHubContentArn() { return this.sageMakerPublicHubContentArn; } /** *

* The ARN of the public hub content to reference. *

* * @param sageMakerPublicHubContentArn * The ARN of the public hub content to reference. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateHubContentReferenceRequest withSageMakerPublicHubContentArn(String sageMakerPublicHubContentArn) { setSageMakerPublicHubContentArn(sageMakerPublicHubContentArn); return this; } /** *

* The name of the hub content to reference. *

* * @param hubContentName * The name of the hub content to reference. */ public void setHubContentName(String hubContentName) { this.hubContentName = hubContentName; } /** *

* The name of the hub content to reference. *

* * @return The name of the hub content to reference. */ public String getHubContentName() { return this.hubContentName; } /** *

* The name of the hub content to reference. *

* * @param hubContentName * The name of the hub content to reference. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateHubContentReferenceRequest withHubContentName(String hubContentName) { setHubContentName(hubContentName); return this; } /** *

* The minimum version of the hub content to reference. *

* * @param minVersion * The minimum version of the hub content to reference. */ public void setMinVersion(String minVersion) { this.minVersion = minVersion; } /** *

* The minimum version of the hub content to reference. *

* * @return The minimum version of the hub content to reference. */ public String getMinVersion() { return this.minVersion; } /** *

* The minimum version of the hub content to reference. *

* * @param minVersion * The minimum version of the hub content to reference. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateHubContentReferenceRequest withMinVersion(String minVersion) { setMinVersion(minVersion); return this; } /** *

* Any tags associated with the hub content to reference. *

* * @return Any tags associated with the hub content to reference. */ public java.util.List getTags() { return tags; } /** *

* Any tags associated with the hub content to reference. *

* * @param tags * Any tags associated with the hub content to reference. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* Any tags associated with the hub content to reference. *

*

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

* * @param tags * Any tags associated with the hub content to reference. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateHubContentReferenceRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* Any tags associated with the hub content to reference. *

* * @param tags * Any tags associated with the hub content to reference. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateHubContentReferenceRequest withTags(java.util.Collection tags) { setTags(tags); 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 (getHubName() != null) sb.append("HubName: ").append(getHubName()).append(","); if (getSageMakerPublicHubContentArn() != null) sb.append("SageMakerPublicHubContentArn: ").append(getSageMakerPublicHubContentArn()).append(","); if (getHubContentName() != null) sb.append("HubContentName: ").append(getHubContentName()).append(","); if (getMinVersion() != null) sb.append("MinVersion: ").append(getMinVersion()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateHubContentReferenceRequest == false) return false; CreateHubContentReferenceRequest other = (CreateHubContentReferenceRequest) obj; if (other.getHubName() == null ^ this.getHubName() == null) return false; if (other.getHubName() != null && other.getHubName().equals(this.getHubName()) == false) return false; if (other.getSageMakerPublicHubContentArn() == null ^ this.getSageMakerPublicHubContentArn() == null) return false; if (other.getSageMakerPublicHubContentArn() != null && other.getSageMakerPublicHubContentArn().equals(this.getSageMakerPublicHubContentArn()) == false) return false; if (other.getHubContentName() == null ^ this.getHubContentName() == null) return false; if (other.getHubContentName() != null && other.getHubContentName().equals(this.getHubContentName()) == false) return false; if (other.getMinVersion() == null ^ this.getMinVersion() == null) return false; if (other.getMinVersion() != null && other.getMinVersion().equals(this.getMinVersion()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getHubName() == null) ? 0 : getHubName().hashCode()); hashCode = prime * hashCode + ((getSageMakerPublicHubContentArn() == null) ? 0 : getSageMakerPublicHubContentArn().hashCode()); hashCode = prime * hashCode + ((getHubContentName() == null) ? 0 : getHubContentName().hashCode()); hashCode = prime * hashCode + ((getMinVersion() == null) ? 0 : getMinVersion().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public CreateHubContentReferenceRequest clone() { return (CreateHubContentReferenceRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy