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

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

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

    /**
     * 

* The name of the project. *

*/ private String projectName; /** *

* The description for the project. *

*/ private String projectDescription; /** *

* The product ID and provisioning artifact ID to provision a service catalog. The provisioning artifact ID will * default to the latest provisioning artifact ID of the product, if you don't provide the provisioning artifact ID. * For more information, see What is Amazon Web Services * Service Catalog. *

*/ private ServiceCatalogProvisioningUpdateDetails serviceCatalogProvisioningUpdateDetails; /** *

* An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, * for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources. * In addition, the project must have tag update constraints set in order to include this parameter in the request. * For more information, see Amazon Web * Services Service Catalog Tag Update Constraints. *

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

* The name of the project. *

* * @param projectName * The name of the project. */ public void setProjectName(String projectName) { this.projectName = projectName; } /** *

* The name of the project. *

* * @return The name of the project. */ public String getProjectName() { return this.projectName; } /** *

* The name of the project. *

* * @param projectName * The name of the project. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProjectRequest withProjectName(String projectName) { setProjectName(projectName); return this; } /** *

* The description for the project. *

* * @param projectDescription * The description for the project. */ public void setProjectDescription(String projectDescription) { this.projectDescription = projectDescription; } /** *

* The description for the project. *

* * @return The description for the project. */ public String getProjectDescription() { return this.projectDescription; } /** *

* The description for the project. *

* * @param projectDescription * The description for the project. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProjectRequest withProjectDescription(String projectDescription) { setProjectDescription(projectDescription); return this; } /** *

* The product ID and provisioning artifact ID to provision a service catalog. The provisioning artifact ID will * default to the latest provisioning artifact ID of the product, if you don't provide the provisioning artifact ID. * For more information, see What is Amazon Web Services * Service Catalog. *

* * @param serviceCatalogProvisioningUpdateDetails * The product ID and provisioning artifact ID to provision a service catalog. The provisioning artifact ID * will default to the latest provisioning artifact ID of the product, if you don't provide the provisioning * artifact ID. For more information, see What is Amazon Web * Services Service Catalog. */ public void setServiceCatalogProvisioningUpdateDetails(ServiceCatalogProvisioningUpdateDetails serviceCatalogProvisioningUpdateDetails) { this.serviceCatalogProvisioningUpdateDetails = serviceCatalogProvisioningUpdateDetails; } /** *

* The product ID and provisioning artifact ID to provision a service catalog. The provisioning artifact ID will * default to the latest provisioning artifact ID of the product, if you don't provide the provisioning artifact ID. * For more information, see What is Amazon Web Services * Service Catalog. *

* * @return The product ID and provisioning artifact ID to provision a service catalog. The provisioning artifact ID * will default to the latest provisioning artifact ID of the product, if you don't provide the provisioning * artifact ID. For more information, see What is Amazon Web * Services Service Catalog. */ public ServiceCatalogProvisioningUpdateDetails getServiceCatalogProvisioningUpdateDetails() { return this.serviceCatalogProvisioningUpdateDetails; } /** *

* The product ID and provisioning artifact ID to provision a service catalog. The provisioning artifact ID will * default to the latest provisioning artifact ID of the product, if you don't provide the provisioning artifact ID. * For more information, see What is Amazon Web Services * Service Catalog. *

* * @param serviceCatalogProvisioningUpdateDetails * The product ID and provisioning artifact ID to provision a service catalog. The provisioning artifact ID * will default to the latest provisioning artifact ID of the product, if you don't provide the provisioning * artifact ID. For more information, see What is Amazon Web * Services Service Catalog. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProjectRequest withServiceCatalogProvisioningUpdateDetails(ServiceCatalogProvisioningUpdateDetails serviceCatalogProvisioningUpdateDetails) { setServiceCatalogProvisioningUpdateDetails(serviceCatalogProvisioningUpdateDetails); return this; } /** *

* An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, * for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources. * In addition, the project must have tag update constraints set in order to include this parameter in the request. * For more information, see Amazon Web * Services Service Catalog Tag Update Constraints. *

* * @return An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in * different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services * Resources. In addition, the project must have tag update constraints set in order to include this * parameter in the request. For more information, see Amazon Web Services Service Catalog Tag Update Constraints. */ public java.util.List getTags() { return tags; } /** *

* An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, * for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources. * In addition, the project must have tag update constraints set in order to include this parameter in the request. * For more information, see Amazon Web * Services Service Catalog Tag Update Constraints. *

* * @param tags * An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in * different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services * Resources. In addition, the project must have tag update constraints set in order to include this * parameter in the request. For more information, see Amazon * Web Services Service Catalog Tag Update Constraints. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, * for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources. * In addition, the project must have tag update constraints set in order to include this parameter in the request. * For more information, see Amazon Web * Services Service Catalog Tag Update Constraints. *

*

* 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 * An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in * different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services * Resources. In addition, the project must have tag update constraints set in order to include this * parameter in the request. For more information, see Amazon * Web Services Service Catalog Tag Update Constraints. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProjectRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in different ways, * for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services Resources. * In addition, the project must have tag update constraints set in order to include this parameter in the request. * For more information, see Amazon Web * Services Service Catalog Tag Update Constraints. *

* * @param tags * An array of key-value pairs. You can use tags to categorize your Amazon Web Services resources in * different ways, for example, by purpose, owner, or environment. For more information, see Tagging Amazon Web Services * Resources. In addition, the project must have tag update constraints set in order to include this * parameter in the request. For more information, see Amazon * Web Services Service Catalog Tag Update Constraints. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateProjectRequest 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 (getProjectName() != null) sb.append("ProjectName: ").append(getProjectName()).append(","); if (getProjectDescription() != null) sb.append("ProjectDescription: ").append(getProjectDescription()).append(","); if (getServiceCatalogProvisioningUpdateDetails() != null) sb.append("ServiceCatalogProvisioningUpdateDetails: ").append(getServiceCatalogProvisioningUpdateDetails()).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 UpdateProjectRequest == false) return false; UpdateProjectRequest other = (UpdateProjectRequest) obj; if (other.getProjectName() == null ^ this.getProjectName() == null) return false; if (other.getProjectName() != null && other.getProjectName().equals(this.getProjectName()) == false) return false; if (other.getProjectDescription() == null ^ this.getProjectDescription() == null) return false; if (other.getProjectDescription() != null && other.getProjectDescription().equals(this.getProjectDescription()) == false) return false; if (other.getServiceCatalogProvisioningUpdateDetails() == null ^ this.getServiceCatalogProvisioningUpdateDetails() == null) return false; if (other.getServiceCatalogProvisioningUpdateDetails() != null && other.getServiceCatalogProvisioningUpdateDetails().equals(this.getServiceCatalogProvisioningUpdateDetails()) == 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 + ((getProjectName() == null) ? 0 : getProjectName().hashCode()); hashCode = prime * hashCode + ((getProjectDescription() == null) ? 0 : getProjectDescription().hashCode()); hashCode = prime * hashCode + ((getServiceCatalogProvisioningUpdateDetails() == null) ? 0 : getServiceCatalogProvisioningUpdateDetails().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public UpdateProjectRequest clone() { return (UpdateProjectRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy