/* * Copyright 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. */ /* * Do not modify this file. This file is generated from the appsync-2017-07-25.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AppSync.Model { /// /// Container for the parameters to the UpdateGraphqlApi operation. /// Updates a GraphqlApi object. /// public partial class UpdateGraphqlApiRequest : AmazonAppSyncRequest { private List _additionalAuthenticationProviders = new List(); private string _apiId; private AuthenticationType _authenticationType; private LambdaAuthorizerConfig _lambdaAuthorizerConfig; private LogConfig _logConfig; private string _mergedApiExecutionRoleArn; private string _name; private OpenIDConnectConfig _openidConnectConfig; private string _ownerContact; private UserPoolConfig _userPoolConfig; private bool? _xrayEnabled; /// /// Gets and sets the property AdditionalAuthenticationProviders. /// /// A list of additional authentication providers for the GraphqlApi API. /// /// public List AdditionalAuthenticationProviders { get { return this._additionalAuthenticationProviders; } set { this._additionalAuthenticationProviders = value; } } // Check to see if AdditionalAuthenticationProviders property is set internal bool IsSetAdditionalAuthenticationProviders() { return this._additionalAuthenticationProviders != null && this._additionalAuthenticationProviders.Count > 0; } /// /// Gets and sets the property ApiId. /// /// The API ID. /// /// [AWSProperty(Required=true)] public string ApiId { get { return this._apiId; } set { this._apiId = value; } } // Check to see if ApiId property is set internal bool IsSetApiId() { return this._apiId != null; } /// /// Gets and sets the property AuthenticationType. /// /// The new authentication type for the GraphqlApi object. /// /// public AuthenticationType AuthenticationType { get { return this._authenticationType; } set { this._authenticationType = value; } } // Check to see if AuthenticationType property is set internal bool IsSetAuthenticationType() { return this._authenticationType != null; } /// /// Gets and sets the property LambdaAuthorizerConfig. /// /// Configuration for Lambda function authorization. /// /// public LambdaAuthorizerConfig LambdaAuthorizerConfig { get { return this._lambdaAuthorizerConfig; } set { this._lambdaAuthorizerConfig = value; } } // Check to see if LambdaAuthorizerConfig property is set internal bool IsSetLambdaAuthorizerConfig() { return this._lambdaAuthorizerConfig != null; } /// /// Gets and sets the property LogConfig. /// /// The Amazon CloudWatch Logs configuration for the GraphqlApi object. /// /// public LogConfig LogConfig { get { return this._logConfig; } set { this._logConfig = value; } } // Check to see if LogConfig property is set internal bool IsSetLogConfig() { return this._logConfig != null; } /// /// Gets and sets the property MergedApiExecutionRoleArn. /// /// The Identity and Access Management service role ARN for a merged API. The AppSync /// service assumes this role on behalf of the Merged API to validate access to source /// APIs at runtime and to prompt the AUTO_MERGE to update the merged API /// endpoint with the source API changes automatically. /// /// public string MergedApiExecutionRoleArn { get { return this._mergedApiExecutionRoleArn; } set { this._mergedApiExecutionRoleArn = value; } } // Check to see if MergedApiExecutionRoleArn property is set internal bool IsSetMergedApiExecutionRoleArn() { return this._mergedApiExecutionRoleArn != null; } /// /// Gets and sets the property Name. /// /// The new name for the GraphqlApi object. /// /// [AWSProperty(Required=true)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property OpenIDConnectConfig. /// /// The OpenID Connect configuration for the GraphqlApi object. /// /// public OpenIDConnectConfig OpenIDConnectConfig { get { return this._openidConnectConfig; } set { this._openidConnectConfig = value; } } // Check to see if OpenIDConnectConfig property is set internal bool IsSetOpenIDConnectConfig() { return this._openidConnectConfig != null; } /// /// Gets and sets the property OwnerContact. /// /// The owner contact information for an API resource. /// /// /// /// This field accepts any string input with a length of 0 - 256 characters. /// /// public string OwnerContact { get { return this._ownerContact; } set { this._ownerContact = value; } } // Check to see if OwnerContact property is set internal bool IsSetOwnerContact() { return this._ownerContact != null; } /// /// Gets and sets the property UserPoolConfig. /// /// The new Amazon Cognito user pool configuration for the ~GraphqlApi object. /// /// public UserPoolConfig UserPoolConfig { get { return this._userPoolConfig; } set { this._userPoolConfig = value; } } // Check to see if UserPoolConfig property is set internal bool IsSetUserPoolConfig() { return this._userPoolConfig != null; } /// /// Gets and sets the property XrayEnabled. /// /// A flag indicating whether to use X-Ray tracing for the GraphqlApi. /// /// public bool XrayEnabled { get { return this._xrayEnabled.GetValueOrDefault(); } set { this._xrayEnabled = value; } } // Check to see if XrayEnabled property is set internal bool IsSetXrayEnabled() { return this._xrayEnabled.HasValue; } } }