382 lines
14 KiB
C++
382 lines
14 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/appsync/AppSync_EXPORTS.h>
|
|
#include <aws/appsync/AppSyncRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/appsync/model/LogConfig.h>
|
|
#include <aws/appsync/model/AuthenticationType.h>
|
|
#include <aws/appsync/model/UserPoolConfig.h>
|
|
#include <aws/appsync/model/OpenIDConnectConfig.h>
|
|
#include <aws/core/utils/memory/stl/AWSMap.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/appsync/model/AdditionalAuthenticationProvider.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace AppSync
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_APPSYNC_API CreateGraphqlApiRequest : public AppSyncRequest
|
|
{
|
|
public:
|
|
CreateGraphqlApiRequest();
|
|
|
|
// Service request name is the Operation name which will send this request out,
|
|
// each operation should has unique request name, so that we can get operation's name from this request.
|
|
// Note: this is not true for response, multiple operations may have the same response name,
|
|
// so we can not get operation's name from response.
|
|
inline virtual const char* GetServiceRequestName() const override { return "CreateGraphqlApi"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
|
|
/**
|
|
* <p>A user-supplied name for the <code>GraphqlApi</code>.</p>
|
|
*/
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|
|
|
/**
|
|
* <p>A user-supplied name for the <code>GraphqlApi</code>.</p>
|
|
*/
|
|
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A user-supplied name for the <code>GraphqlApi</code>.</p>
|
|
*/
|
|
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
|
|
|
/**
|
|
* <p>A user-supplied name for the <code>GraphqlApi</code>.</p>
|
|
*/
|
|
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
|
|
|
/**
|
|
* <p>A user-supplied name for the <code>GraphqlApi</code>.</p>
|
|
*/
|
|
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
|
|
|
/**
|
|
* <p>A user-supplied name for the <code>GraphqlApi</code>.</p>
|
|
*/
|
|
inline CreateGraphqlApiRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|
|
|
/**
|
|
* <p>A user-supplied name for the <code>GraphqlApi</code>.</p>
|
|
*/
|
|
inline CreateGraphqlApiRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A user-supplied name for the <code>GraphqlApi</code>.</p>
|
|
*/
|
|
inline CreateGraphqlApiRequest& WithName(const char* value) { SetName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The Amazon CloudWatch Logs configuration.</p>
|
|
*/
|
|
inline const LogConfig& GetLogConfig() const{ return m_logConfig; }
|
|
|
|
/**
|
|
* <p>The Amazon CloudWatch Logs configuration.</p>
|
|
*/
|
|
inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The Amazon CloudWatch Logs configuration.</p>
|
|
*/
|
|
inline void SetLogConfig(const LogConfig& value) { m_logConfigHasBeenSet = true; m_logConfig = value; }
|
|
|
|
/**
|
|
* <p>The Amazon CloudWatch Logs configuration.</p>
|
|
*/
|
|
inline void SetLogConfig(LogConfig&& value) { m_logConfigHasBeenSet = true; m_logConfig = std::move(value); }
|
|
|
|
/**
|
|
* <p>The Amazon CloudWatch Logs configuration.</p>
|
|
*/
|
|
inline CreateGraphqlApiRequest& WithLogConfig(const LogConfig& value) { SetLogConfig(value); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon CloudWatch Logs configuration.</p>
|
|
*/
|
|
inline CreateGraphqlApiRequest& WithLogConfig(LogConfig&& value) { SetLogConfig(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The authentication type: API key, AWS IAM, OIDC, or Amazon Cognito user
|
|
* pools.</p>
|
|
*/
|
|
inline const AuthenticationType& GetAuthenticationType() const{ return m_authenticationType; }
|
|
|
|
/**
|
|
* <p>The authentication type: API key, AWS IAM, OIDC, or Amazon Cognito user
|
|
* pools.</p>
|
|
*/
|
|
inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The authentication type: API key, AWS IAM, OIDC, or Amazon Cognito user
|
|
* pools.</p>
|
|
*/
|
|
inline void SetAuthenticationType(const AuthenticationType& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; }
|
|
|
|
/**
|
|
* <p>The authentication type: API key, AWS IAM, OIDC, or Amazon Cognito user
|
|
* pools.</p>
|
|
*/
|
|
inline void SetAuthenticationType(AuthenticationType&& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = std::move(value); }
|
|
|
|
/**
|
|
* <p>The authentication type: API key, AWS IAM, OIDC, or Amazon Cognito user
|
|
* pools.</p>
|
|
*/
|
|
inline CreateGraphqlApiRequest& WithAuthenticationType(const AuthenticationType& value) { SetAuthenticationType(value); return *this;}
|
|
|
|
/**
|
|
* <p>The authentication type: API key, AWS IAM, OIDC, or Amazon Cognito user
|
|
* pools.</p>
|
|
*/
|
|
inline CreateGraphqlApiRequest& WithAuthenticationType(AuthenticationType&& value) { SetAuthenticationType(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The Amazon Cognito user pool configuration.</p>
|
|
*/
|
|
inline const UserPoolConfig& GetUserPoolConfig() const{ return m_userPoolConfig; }
|
|
|
|
/**
|
|
* <p>The Amazon Cognito user pool configuration.</p>
|
|
*/
|
|
inline bool UserPoolConfigHasBeenSet() const { return m_userPoolConfigHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The Amazon Cognito user pool configuration.</p>
|
|
*/
|
|
inline void SetUserPoolConfig(const UserPoolConfig& value) { m_userPoolConfigHasBeenSet = true; m_userPoolConfig = value; }
|
|
|
|
/**
|
|
* <p>The Amazon Cognito user pool configuration.</p>
|
|
*/
|
|
inline void SetUserPoolConfig(UserPoolConfig&& value) { m_userPoolConfigHasBeenSet = true; m_userPoolConfig = std::move(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Cognito user pool configuration.</p>
|
|
*/
|
|
inline CreateGraphqlApiRequest& WithUserPoolConfig(const UserPoolConfig& value) { SetUserPoolConfig(value); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Cognito user pool configuration.</p>
|
|
*/
|
|
inline CreateGraphqlApiRequest& WithUserPoolConfig(UserPoolConfig&& value) { SetUserPoolConfig(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The OpenID Connect configuration.</p>
|
|
*/
|
|
inline const OpenIDConnectConfig& GetOpenIDConnectConfig() const{ return m_openIDConnectConfig; }
|
|
|
|
/**
|
|
* <p>The OpenID Connect configuration.</p>
|
|
*/
|
|
inline bool OpenIDConnectConfigHasBeenSet() const { return m_openIDConnectConfigHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The OpenID Connect configuration.</p>
|
|
*/
|
|
inline void SetOpenIDConnectConfig(const OpenIDConnectConfig& value) { m_openIDConnectConfigHasBeenSet = true; m_openIDConnectConfig = value; }
|
|
|
|
/**
|
|
* <p>The OpenID Connect configuration.</p>
|
|
*/
|
|
inline void SetOpenIDConnectConfig(OpenIDConnectConfig&& value) { m_openIDConnectConfigHasBeenSet = true; m_openIDConnectConfig = std::move(value); }
|
|
|
|
/**
|
|
* <p>The OpenID Connect configuration.</p>
|
|
*/
|
|
inline CreateGraphqlApiRequest& WithOpenIDConnectConfig(const OpenIDConnectConfig& value) { SetOpenIDConnectConfig(value); return *this;}
|
|
|
|
/**
|
|
* <p>The OpenID Connect configuration.</p>
|
|
*/
|
|
inline CreateGraphqlApiRequest& WithOpenIDConnectConfig(OpenIDConnectConfig&& value) { SetOpenIDConnectConfig(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A <code>TagMap</code> object.</p>
|
|
*/
|
|
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
|
|
|
|
/**
|
|
* <p>A <code>TagMap</code> object.</p>
|
|
*/
|
|
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A <code>TagMap</code> object.</p>
|
|
*/
|
|
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
|
|
|
/**
|
|
* <p>A <code>TagMap</code> object.</p>
|
|
*/
|
|
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
|
|
|
/**
|
|
* <p>A <code>TagMap</code> object.</p>
|
|
*/
|
|
inline CreateGraphqlApiRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
|
|
|
|
/**
|
|
* <p>A <code>TagMap</code> object.</p>
|
|
*/
|
|
inline CreateGraphqlApiRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A <code>TagMap</code> object.</p>
|
|
*/
|
|
inline CreateGraphqlApiRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
|
|
|
|
/**
|
|
* <p>A <code>TagMap</code> object.</p>
|
|
*/
|
|
inline CreateGraphqlApiRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
|
|
|
|
/**
|
|
* <p>A <code>TagMap</code> object.</p>
|
|
*/
|
|
inline CreateGraphqlApiRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>A <code>TagMap</code> object.</p>
|
|
*/
|
|
inline CreateGraphqlApiRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>A <code>TagMap</code> object.</p>
|
|
*/
|
|
inline CreateGraphqlApiRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>A <code>TagMap</code> object.</p>
|
|
*/
|
|
inline CreateGraphqlApiRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
|
|
|
|
/**
|
|
* <p>A <code>TagMap</code> object.</p>
|
|
*/
|
|
inline CreateGraphqlApiRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>A list of additional authentication providers for the <code>GraphqlApi</code>
|
|
* API.</p>
|
|
*/
|
|
inline const Aws::Vector<AdditionalAuthenticationProvider>& GetAdditionalAuthenticationProviders() const{ return m_additionalAuthenticationProviders; }
|
|
|
|
/**
|
|
* <p>A list of additional authentication providers for the <code>GraphqlApi</code>
|
|
* API.</p>
|
|
*/
|
|
inline bool AdditionalAuthenticationProvidersHasBeenSet() const { return m_additionalAuthenticationProvidersHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A list of additional authentication providers for the <code>GraphqlApi</code>
|
|
* API.</p>
|
|
*/
|
|
inline void SetAdditionalAuthenticationProviders(const Aws::Vector<AdditionalAuthenticationProvider>& value) { m_additionalAuthenticationProvidersHasBeenSet = true; m_additionalAuthenticationProviders = value; }
|
|
|
|
/**
|
|
* <p>A list of additional authentication providers for the <code>GraphqlApi</code>
|
|
* API.</p>
|
|
*/
|
|
inline void SetAdditionalAuthenticationProviders(Aws::Vector<AdditionalAuthenticationProvider>&& value) { m_additionalAuthenticationProvidersHasBeenSet = true; m_additionalAuthenticationProviders = std::move(value); }
|
|
|
|
/**
|
|
* <p>A list of additional authentication providers for the <code>GraphqlApi</code>
|
|
* API.</p>
|
|
*/
|
|
inline CreateGraphqlApiRequest& WithAdditionalAuthenticationProviders(const Aws::Vector<AdditionalAuthenticationProvider>& value) { SetAdditionalAuthenticationProviders(value); return *this;}
|
|
|
|
/**
|
|
* <p>A list of additional authentication providers for the <code>GraphqlApi</code>
|
|
* API.</p>
|
|
*/
|
|
inline CreateGraphqlApiRequest& WithAdditionalAuthenticationProviders(Aws::Vector<AdditionalAuthenticationProvider>&& value) { SetAdditionalAuthenticationProviders(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A list of additional authentication providers for the <code>GraphqlApi</code>
|
|
* API.</p>
|
|
*/
|
|
inline CreateGraphqlApiRequest& AddAdditionalAuthenticationProviders(const AdditionalAuthenticationProvider& value) { m_additionalAuthenticationProvidersHasBeenSet = true; m_additionalAuthenticationProviders.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>A list of additional authentication providers for the <code>GraphqlApi</code>
|
|
* API.</p>
|
|
*/
|
|
inline CreateGraphqlApiRequest& AddAdditionalAuthenticationProviders(AdditionalAuthenticationProvider&& value) { m_additionalAuthenticationProvidersHasBeenSet = true; m_additionalAuthenticationProviders.push_back(std::move(value)); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>A flag indicating whether to enable X-Ray tracing for the
|
|
* <code>GraphqlApi</code>.</p>
|
|
*/
|
|
inline bool GetXrayEnabled() const{ return m_xrayEnabled; }
|
|
|
|
/**
|
|
* <p>A flag indicating whether to enable X-Ray tracing for the
|
|
* <code>GraphqlApi</code>.</p>
|
|
*/
|
|
inline bool XrayEnabledHasBeenSet() const { return m_xrayEnabledHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A flag indicating whether to enable X-Ray tracing for the
|
|
* <code>GraphqlApi</code>.</p>
|
|
*/
|
|
inline void SetXrayEnabled(bool value) { m_xrayEnabledHasBeenSet = true; m_xrayEnabled = value; }
|
|
|
|
/**
|
|
* <p>A flag indicating whether to enable X-Ray tracing for the
|
|
* <code>GraphqlApi</code>.</p>
|
|
*/
|
|
inline CreateGraphqlApiRequest& WithXrayEnabled(bool value) { SetXrayEnabled(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_name;
|
|
bool m_nameHasBeenSet;
|
|
|
|
LogConfig m_logConfig;
|
|
bool m_logConfigHasBeenSet;
|
|
|
|
AuthenticationType m_authenticationType;
|
|
bool m_authenticationTypeHasBeenSet;
|
|
|
|
UserPoolConfig m_userPoolConfig;
|
|
bool m_userPoolConfigHasBeenSet;
|
|
|
|
OpenIDConnectConfig m_openIDConnectConfig;
|
|
bool m_openIDConnectConfigHasBeenSet;
|
|
|
|
Aws::Map<Aws::String, Aws::String> m_tags;
|
|
bool m_tagsHasBeenSet;
|
|
|
|
Aws::Vector<AdditionalAuthenticationProvider> m_additionalAuthenticationProviders;
|
|
bool m_additionalAuthenticationProvidersHasBeenSet;
|
|
|
|
bool m_xrayEnabled;
|
|
bool m_xrayEnabledHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace AppSync
|
|
} // namespace Aws
|