/* * 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.apigateway.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* Represents an API resource. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UpdateResourceResult extends com.amazonaws.AmazonWebServiceResult* The resource's identifier. *
*/ private String id; /** ** The parent resource's identifier. *
*/ private String parentId; /** ** The last path segment for this resource. *
*/ private String pathPart; /** ** The full path for this resource. *
*/ private String path; /** ** Gets an API resource's method of a given HTTP verb. *
*/ private java.util.Map* The resource's identifier. *
* * @param id * The resource's identifier. */ public void setId(String id) { this.id = id; } /** ** The resource's identifier. *
* * @return The resource's identifier. */ public String getId() { return this.id; } /** ** The resource's identifier. *
* * @param id * The resource's identifier. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateResourceResult withId(String id) { setId(id); return this; } /** ** The parent resource's identifier. *
* * @param parentId * The parent resource's identifier. */ public void setParentId(String parentId) { this.parentId = parentId; } /** ** The parent resource's identifier. *
* * @return The parent resource's identifier. */ public String getParentId() { return this.parentId; } /** ** The parent resource's identifier. *
* * @param parentId * The parent resource's identifier. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateResourceResult withParentId(String parentId) { setParentId(parentId); return this; } /** ** The last path segment for this resource. *
* * @param pathPart * The last path segment for this resource. */ public void setPathPart(String pathPart) { this.pathPart = pathPart; } /** ** The last path segment for this resource. *
* * @return The last path segment for this resource. */ public String getPathPart() { return this.pathPart; } /** ** The last path segment for this resource. *
* * @param pathPart * The last path segment for this resource. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateResourceResult withPathPart(String pathPart) { setPathPart(pathPart); return this; } /** ** The full path for this resource. *
* * @param path * The full path for this resource. */ public void setPath(String path) { this.path = path; } /** ** The full path for this resource. *
* * @return The full path for this resource. */ public String getPath() { return this.path; } /** ** The full path for this resource. *
* * @param path * The full path for this resource. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateResourceResult withPath(String path) { setPath(path); return this; } /** ** Gets an API resource's method of a given HTTP verb. *
* * @return Gets an API resource's method of a given HTTP verb. */ public java.util.Map* Gets an API resource's method of a given HTTP verb. *
* * @param resourceMethods * Gets an API resource's method of a given HTTP verb. */ public void setResourceMethods(java.util.Map* Gets an API resource's method of a given HTTP verb. *
* * @param resourceMethods * Gets an API resource's method of a given HTTP verb. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateResourceResult withResourceMethods(java.util.Map