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

com.amazonaws.services.sagemaker.model.DescribeContextResult 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;

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

    /**
     * 

* The name of the context. *

*/ private String contextName; /** *

* The Amazon Resource Name (ARN) of the context. *

*/ private String contextArn; /** *

* The source of the context. *

*/ private ContextSource source; /** *

* The type of the context. *

*/ private String contextType; /** *

* The description of the context. *

*/ private String description; /** *

* A list of the context's properties. *

*/ private java.util.Map properties; /** *

* When the context was created. *

*/ private java.util.Date creationTime; private UserContext createdBy; /** *

* When the context was last modified. *

*/ private java.util.Date lastModifiedTime; private UserContext lastModifiedBy; /** *

* The Amazon Resource Name (ARN) of the lineage group. *

*/ private String lineageGroupArn; /** *

* The name of the context. *

* * @param contextName * The name of the context. */ public void setContextName(String contextName) { this.contextName = contextName; } /** *

* The name of the context. *

* * @return The name of the context. */ public String getContextName() { return this.contextName; } /** *

* The name of the context. *

* * @param contextName * The name of the context. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeContextResult withContextName(String contextName) { setContextName(contextName); return this; } /** *

* The Amazon Resource Name (ARN) of the context. *

* * @param contextArn * The Amazon Resource Name (ARN) of the context. */ public void setContextArn(String contextArn) { this.contextArn = contextArn; } /** *

* The Amazon Resource Name (ARN) of the context. *

* * @return The Amazon Resource Name (ARN) of the context. */ public String getContextArn() { return this.contextArn; } /** *

* The Amazon Resource Name (ARN) of the context. *

* * @param contextArn * The Amazon Resource Name (ARN) of the context. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeContextResult withContextArn(String contextArn) { setContextArn(contextArn); return this; } /** *

* The source of the context. *

* * @param source * The source of the context. */ public void setSource(ContextSource source) { this.source = source; } /** *

* The source of the context. *

* * @return The source of the context. */ public ContextSource getSource() { return this.source; } /** *

* The source of the context. *

* * @param source * The source of the context. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeContextResult withSource(ContextSource source) { setSource(source); return this; } /** *

* The type of the context. *

* * @param contextType * The type of the context. */ public void setContextType(String contextType) { this.contextType = contextType; } /** *

* The type of the context. *

* * @return The type of the context. */ public String getContextType() { return this.contextType; } /** *

* The type of the context. *

* * @param contextType * The type of the context. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeContextResult withContextType(String contextType) { setContextType(contextType); return this; } /** *

* The description of the context. *

* * @param description * The description of the context. */ public void setDescription(String description) { this.description = description; } /** *

* The description of the context. *

* * @return The description of the context. */ public String getDescription() { return this.description; } /** *

* The description of the context. *

* * @param description * The description of the context. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeContextResult withDescription(String description) { setDescription(description); return this; } /** *

* A list of the context's properties. *

* * @return A list of the context's properties. */ public java.util.Map getProperties() { return properties; } /** *

* A list of the context's properties. *

* * @param properties * A list of the context's properties. */ public void setProperties(java.util.Map properties) { this.properties = properties; } /** *

* A list of the context's properties. *

* * @param properties * A list of the context's properties. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeContextResult withProperties(java.util.Map properties) { setProperties(properties); return this; } /** * Add a single Properties entry * * @see DescribeContextResult#withProperties * @returns a reference to this object so that method calls can be chained together. */ public DescribeContextResult addPropertiesEntry(String key, String value) { if (null == this.properties) { this.properties = new java.util.HashMap(); } if (this.properties.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.properties.put(key, value); return this; } /** * Removes all the entries added into Properties. * * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeContextResult clearPropertiesEntries() { this.properties = null; return this; } /** *

* When the context was created. *

* * @param creationTime * When the context was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** *

* When the context was created. *

* * @return When the context was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** *

* When the context was created. *

* * @param creationTime * When the context was created. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeContextResult withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** * @param createdBy */ public void setCreatedBy(UserContext createdBy) { this.createdBy = createdBy; } /** * @return */ public UserContext getCreatedBy() { return this.createdBy; } /** * @param createdBy * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeContextResult withCreatedBy(UserContext createdBy) { setCreatedBy(createdBy); return this; } /** *

* When the context was last modified. *

* * @param lastModifiedTime * When the context was last modified. */ public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** *

* When the context was last modified. *

* * @return When the context was last modified. */ public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; } /** *

* When the context was last modified. *

* * @param lastModifiedTime * When the context was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeContextResult withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); return this; } /** * @param lastModifiedBy */ public void setLastModifiedBy(UserContext lastModifiedBy) { this.lastModifiedBy = lastModifiedBy; } /** * @return */ public UserContext getLastModifiedBy() { return this.lastModifiedBy; } /** * @param lastModifiedBy * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeContextResult withLastModifiedBy(UserContext lastModifiedBy) { setLastModifiedBy(lastModifiedBy); return this; } /** *

* The Amazon Resource Name (ARN) of the lineage group. *

* * @param lineageGroupArn * The Amazon Resource Name (ARN) of the lineage group. */ public void setLineageGroupArn(String lineageGroupArn) { this.lineageGroupArn = lineageGroupArn; } /** *

* The Amazon Resource Name (ARN) of the lineage group. *

* * @return The Amazon Resource Name (ARN) of the lineage group. */ public String getLineageGroupArn() { return this.lineageGroupArn; } /** *

* The Amazon Resource Name (ARN) of the lineage group. *

* * @param lineageGroupArn * The Amazon Resource Name (ARN) of the lineage group. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeContextResult withLineageGroupArn(String lineageGroupArn) { setLineageGroupArn(lineageGroupArn); 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 (getContextName() != null) sb.append("ContextName: ").append(getContextName()).append(","); if (getContextArn() != null) sb.append("ContextArn: ").append(getContextArn()).append(","); if (getSource() != null) sb.append("Source: ").append(getSource()).append(","); if (getContextType() != null) sb.append("ContextType: ").append(getContextType()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getProperties() != null) sb.append("Properties: ").append(getProperties()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getCreatedBy() != null) sb.append("CreatedBy: ").append(getCreatedBy()).append(","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: ").append(getLastModifiedTime()).append(","); if (getLastModifiedBy() != null) sb.append("LastModifiedBy: ").append(getLastModifiedBy()).append(","); if (getLineageGroupArn() != null) sb.append("LineageGroupArn: ").append(getLineageGroupArn()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeContextResult == false) return false; DescribeContextResult other = (DescribeContextResult) obj; if (other.getContextName() == null ^ this.getContextName() == null) return false; if (other.getContextName() != null && other.getContextName().equals(this.getContextName()) == false) return false; if (other.getContextArn() == null ^ this.getContextArn() == null) return false; if (other.getContextArn() != null && other.getContextArn().equals(this.getContextArn()) == false) return false; if (other.getSource() == null ^ this.getSource() == null) return false; if (other.getSource() != null && other.getSource().equals(this.getSource()) == false) return false; if (other.getContextType() == null ^ this.getContextType() == null) return false; if (other.getContextType() != null && other.getContextType().equals(this.getContextType()) == 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.getProperties() == null ^ this.getProperties() == null) return false; if (other.getProperties() != null && other.getProperties().equals(this.getProperties()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getCreatedBy() == null ^ this.getCreatedBy() == null) return false; if (other.getCreatedBy() != null && other.getCreatedBy().equals(this.getCreatedBy()) == false) return false; if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) return false; if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) return false; if (other.getLastModifiedBy() == null ^ this.getLastModifiedBy() == null) return false; if (other.getLastModifiedBy() != null && other.getLastModifiedBy().equals(this.getLastModifiedBy()) == false) return false; if (other.getLineageGroupArn() == null ^ this.getLineageGroupArn() == null) return false; if (other.getLineageGroupArn() != null && other.getLineageGroupArn().equals(this.getLineageGroupArn()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getContextName() == null) ? 0 : getContextName().hashCode()); hashCode = prime * hashCode + ((getContextArn() == null) ? 0 : getContextArn().hashCode()); hashCode = prime * hashCode + ((getSource() == null) ? 0 : getSource().hashCode()); hashCode = prime * hashCode + ((getContextType() == null) ? 0 : getContextType().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getProperties() == null) ? 0 : getProperties().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); hashCode = prime * hashCode + ((getLastModifiedBy() == null) ? 0 : getLastModifiedBy().hashCode()); hashCode = prime * hashCode + ((getLineageGroupArn() == null) ? 0 : getLineageGroupArn().hashCode()); return hashCode; } @Override public DescribeContextResult clone() { try { return (DescribeContextResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy