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

com.amazonaws.services.appsync.model.PutGraphqlApiEnvironmentVariablesRequest Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
Show 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.appsync.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 PutGraphqlApiEnvironmentVariablesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The ID of the API to which the environmental variable list will be written. *

*/ private String apiId; /** *

* The list of environmental variables to add to the API. *

*

* When creating an environmental variable key-value pair, it must follow the additional constraints below: *

*
    *
  • *

    * Keys must begin with a letter. *

    *
  • *
  • *

    * Keys must be at least two characters long. *

    *
  • *
  • *

    * Keys can only contain letters, numbers, and the underscore character (_). *

    *
  • *
  • *

    * Values can be up to 512 characters long. *

    *
  • *
  • *

    * You can configure up to 50 key-value pairs in a GraphQL API. *

    *
  • *
*

* You can create a list of environmental variables by adding it to the environmentVariables payload as * a list in the format {"key1":"value1","key2":"value2", …}. Note that each call of the * PutGraphqlApiEnvironmentVariables action will result in the overwriting of the existing * environmental variable list of that API. This means the existing environmental variables will be lost. To avoid * this, you must include all existing and new environmental variables in the list each time you call this action. *

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

* The ID of the API to which the environmental variable list will be written. *

* * @param apiId * The ID of the API to which the environmental variable list will be written. */ public void setApiId(String apiId) { this.apiId = apiId; } /** *

* The ID of the API to which the environmental variable list will be written. *

* * @return The ID of the API to which the environmental variable list will be written. */ public String getApiId() { return this.apiId; } /** *

* The ID of the API to which the environmental variable list will be written. *

* * @param apiId * The ID of the API to which the environmental variable list will be written. * @return Returns a reference to this object so that method calls can be chained together. */ public PutGraphqlApiEnvironmentVariablesRequest withApiId(String apiId) { setApiId(apiId); return this; } /** *

* The list of environmental variables to add to the API. *

*

* When creating an environmental variable key-value pair, it must follow the additional constraints below: *

*
    *
  • *

    * Keys must begin with a letter. *

    *
  • *
  • *

    * Keys must be at least two characters long. *

    *
  • *
  • *

    * Keys can only contain letters, numbers, and the underscore character (_). *

    *
  • *
  • *

    * Values can be up to 512 characters long. *

    *
  • *
  • *

    * You can configure up to 50 key-value pairs in a GraphQL API. *

    *
  • *
*

* You can create a list of environmental variables by adding it to the environmentVariables payload as * a list in the format {"key1":"value1","key2":"value2", …}. Note that each call of the * PutGraphqlApiEnvironmentVariables action will result in the overwriting of the existing * environmental variable list of that API. This means the existing environmental variables will be lost. To avoid * this, you must include all existing and new environmental variables in the list each time you call this action. *

* * @return The list of environmental variables to add to the API.

*

* When creating an environmental variable key-value pair, it must follow the additional constraints below: *

*
    *
  • *

    * Keys must begin with a letter. *

    *
  • *
  • *

    * Keys must be at least two characters long. *

    *
  • *
  • *

    * Keys can only contain letters, numbers, and the underscore character (_). *

    *
  • *
  • *

    * Values can be up to 512 characters long. *

    *
  • *
  • *

    * You can configure up to 50 key-value pairs in a GraphQL API. *

    *
  • *
*

* You can create a list of environmental variables by adding it to the environmentVariables * payload as a list in the format {"key1":"value1","key2":"value2", …}. Note that each call of * the PutGraphqlApiEnvironmentVariables action will result in the overwriting of the existing * environmental variable list of that API. This means the existing environmental variables will be lost. To * avoid this, you must include all existing and new environmental variables in the list each time you call * this action. */ public java.util.Map getEnvironmentVariables() { return environmentVariables; } /** *

* The list of environmental variables to add to the API. *

*

* When creating an environmental variable key-value pair, it must follow the additional constraints below: *

*
    *
  • *

    * Keys must begin with a letter. *

    *
  • *
  • *

    * Keys must be at least two characters long. *

    *
  • *
  • *

    * Keys can only contain letters, numbers, and the underscore character (_). *

    *
  • *
  • *

    * Values can be up to 512 characters long. *

    *
  • *
  • *

    * You can configure up to 50 key-value pairs in a GraphQL API. *

    *
  • *
*

* You can create a list of environmental variables by adding it to the environmentVariables payload as * a list in the format {"key1":"value1","key2":"value2", …}. Note that each call of the * PutGraphqlApiEnvironmentVariables action will result in the overwriting of the existing * environmental variable list of that API. This means the existing environmental variables will be lost. To avoid * this, you must include all existing and new environmental variables in the list each time you call this action. *

* * @param environmentVariables * The list of environmental variables to add to the API.

*

* When creating an environmental variable key-value pair, it must follow the additional constraints below: *

*
    *
  • *

    * Keys must begin with a letter. *

    *
  • *
  • *

    * Keys must be at least two characters long. *

    *
  • *
  • *

    * Keys can only contain letters, numbers, and the underscore character (_). *

    *
  • *
  • *

    * Values can be up to 512 characters long. *

    *
  • *
  • *

    * You can configure up to 50 key-value pairs in a GraphQL API. *

    *
  • *
*

* You can create a list of environmental variables by adding it to the environmentVariables * payload as a list in the format {"key1":"value1","key2":"value2", …}. Note that each call of * the PutGraphqlApiEnvironmentVariables action will result in the overwriting of the existing * environmental variable list of that API. This means the existing environmental variables will be lost. To * avoid this, you must include all existing and new environmental variables in the list each time you call * this action. */ public void setEnvironmentVariables(java.util.Map environmentVariables) { this.environmentVariables = environmentVariables; } /** *

* The list of environmental variables to add to the API. *

*

* When creating an environmental variable key-value pair, it must follow the additional constraints below: *

*
    *
  • *

    * Keys must begin with a letter. *

    *
  • *
  • *

    * Keys must be at least two characters long. *

    *
  • *
  • *

    * Keys can only contain letters, numbers, and the underscore character (_). *

    *
  • *
  • *

    * Values can be up to 512 characters long. *

    *
  • *
  • *

    * You can configure up to 50 key-value pairs in a GraphQL API. *

    *
  • *
*

* You can create a list of environmental variables by adding it to the environmentVariables payload as * a list in the format {"key1":"value1","key2":"value2", …}. Note that each call of the * PutGraphqlApiEnvironmentVariables action will result in the overwriting of the existing * environmental variable list of that API. This means the existing environmental variables will be lost. To avoid * this, you must include all existing and new environmental variables in the list each time you call this action. *

* * @param environmentVariables * The list of environmental variables to add to the API.

*

* When creating an environmental variable key-value pair, it must follow the additional constraints below: *

*
    *
  • *

    * Keys must begin with a letter. *

    *
  • *
  • *

    * Keys must be at least two characters long. *

    *
  • *
  • *

    * Keys can only contain letters, numbers, and the underscore character (_). *

    *
  • *
  • *

    * Values can be up to 512 characters long. *

    *
  • *
  • *

    * You can configure up to 50 key-value pairs in a GraphQL API. *

    *
  • *
*

* You can create a list of environmental variables by adding it to the environmentVariables * payload as a list in the format {"key1":"value1","key2":"value2", …}. Note that each call of * the PutGraphqlApiEnvironmentVariables action will result in the overwriting of the existing * environmental variable list of that API. This means the existing environmental variables will be lost. To * avoid this, you must include all existing and new environmental variables in the list each time you call * this action. * @return Returns a reference to this object so that method calls can be chained together. */ public PutGraphqlApiEnvironmentVariablesRequest withEnvironmentVariables(java.util.Map environmentVariables) { setEnvironmentVariables(environmentVariables); return this; } /** * Add a single EnvironmentVariables entry * * @see PutGraphqlApiEnvironmentVariablesRequest#withEnvironmentVariables * @returns a reference to this object so that method calls can be chained together. */ public PutGraphqlApiEnvironmentVariablesRequest addEnvironmentVariablesEntry(String key, String value) { if (null == this.environmentVariables) { this.environmentVariables = new java.util.HashMap(); } if (this.environmentVariables.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.environmentVariables.put(key, value); return this; } /** * Removes all the entries added into EnvironmentVariables. * * @return Returns a reference to this object so that method calls can be chained together. */ public PutGraphqlApiEnvironmentVariablesRequest clearEnvironmentVariablesEntries() { this.environmentVariables = null; 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 (getApiId() != null) sb.append("ApiId: ").append(getApiId()).append(","); if (getEnvironmentVariables() != null) sb.append("EnvironmentVariables: ").append(getEnvironmentVariables()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PutGraphqlApiEnvironmentVariablesRequest == false) return false; PutGraphqlApiEnvironmentVariablesRequest other = (PutGraphqlApiEnvironmentVariablesRequest) obj; if (other.getApiId() == null ^ this.getApiId() == null) return false; if (other.getApiId() != null && other.getApiId().equals(this.getApiId()) == false) return false; if (other.getEnvironmentVariables() == null ^ this.getEnvironmentVariables() == null) return false; if (other.getEnvironmentVariables() != null && other.getEnvironmentVariables().equals(this.getEnvironmentVariables()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getApiId() == null) ? 0 : getApiId().hashCode()); hashCode = prime * hashCode + ((getEnvironmentVariables() == null) ? 0 : getEnvironmentVariables().hashCode()); return hashCode; } @Override public PutGraphqlApiEnvironmentVariablesRequest clone() { return (PutGraphqlApiEnvironmentVariablesRequest) super.clone(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy