282 lines
14 KiB
C++
282 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/ApiCachingBehavior.h>
|
|
#include <aws/appsync/model/ApiCacheType.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace AppSync
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Represents the input of a <code>UpdateApiCache</code>
|
|
* operation.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/appsync-2017-07-25/UpdateApiCacheRequest">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_APPSYNC_API UpdateApiCacheRequest : public AppSyncRequest
|
|
{
|
|
public:
|
|
UpdateApiCacheRequest();
|
|
|
|
// 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 "UpdateApiCache"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
|
|
/**
|
|
* <p>The GraphQL API Id.</p>
|
|
*/
|
|
inline const Aws::String& GetApiId() const{ return m_apiId; }
|
|
|
|
/**
|
|
* <p>The GraphQL API Id.</p>
|
|
*/
|
|
inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The GraphQL API Id.</p>
|
|
*/
|
|
inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
|
|
|
|
/**
|
|
* <p>The GraphQL API Id.</p>
|
|
*/
|
|
inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The GraphQL API Id.</p>
|
|
*/
|
|
inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
|
|
|
|
/**
|
|
* <p>The GraphQL API Id.</p>
|
|
*/
|
|
inline UpdateApiCacheRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The GraphQL API Id.</p>
|
|
*/
|
|
inline UpdateApiCacheRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The GraphQL API Id.</p>
|
|
*/
|
|
inline UpdateApiCacheRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>TTL in seconds for cache entries.</p> <p>Valid values are between 1 and 3600
|
|
* seconds.</p>
|
|
*/
|
|
inline long long GetTtl() const{ return m_ttl; }
|
|
|
|
/**
|
|
* <p>TTL in seconds for cache entries.</p> <p>Valid values are between 1 and 3600
|
|
* seconds.</p>
|
|
*/
|
|
inline bool TtlHasBeenSet() const { return m_ttlHasBeenSet; }
|
|
|
|
/**
|
|
* <p>TTL in seconds for cache entries.</p> <p>Valid values are between 1 and 3600
|
|
* seconds.</p>
|
|
*/
|
|
inline void SetTtl(long long value) { m_ttlHasBeenSet = true; m_ttl = value; }
|
|
|
|
/**
|
|
* <p>TTL in seconds for cache entries.</p> <p>Valid values are between 1 and 3600
|
|
* seconds.</p>
|
|
*/
|
|
inline UpdateApiCacheRequest& WithTtl(long long value) { SetTtl(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Caching behavior.</p> <ul> <li> <p> <b>FULL_REQUEST_CACHING</b>: All requests
|
|
* are fully cached.</p> </li> <li> <p> <b>PER_RESOLVER_CACHING</b>: Individual
|
|
* resovlers that you specify are cached.</p> </li> </ul>
|
|
*/
|
|
inline const ApiCachingBehavior& GetApiCachingBehavior() const{ return m_apiCachingBehavior; }
|
|
|
|
/**
|
|
* <p>Caching behavior.</p> <ul> <li> <p> <b>FULL_REQUEST_CACHING</b>: All requests
|
|
* are fully cached.</p> </li> <li> <p> <b>PER_RESOLVER_CACHING</b>: Individual
|
|
* resovlers that you specify are cached.</p> </li> </ul>
|
|
*/
|
|
inline bool ApiCachingBehaviorHasBeenSet() const { return m_apiCachingBehaviorHasBeenSet; }
|
|
|
|
/**
|
|
* <p>Caching behavior.</p> <ul> <li> <p> <b>FULL_REQUEST_CACHING</b>: All requests
|
|
* are fully cached.</p> </li> <li> <p> <b>PER_RESOLVER_CACHING</b>: Individual
|
|
* resovlers that you specify are cached.</p> </li> </ul>
|
|
*/
|
|
inline void SetApiCachingBehavior(const ApiCachingBehavior& value) { m_apiCachingBehaviorHasBeenSet = true; m_apiCachingBehavior = value; }
|
|
|
|
/**
|
|
* <p>Caching behavior.</p> <ul> <li> <p> <b>FULL_REQUEST_CACHING</b>: All requests
|
|
* are fully cached.</p> </li> <li> <p> <b>PER_RESOLVER_CACHING</b>: Individual
|
|
* resovlers that you specify are cached.</p> </li> </ul>
|
|
*/
|
|
inline void SetApiCachingBehavior(ApiCachingBehavior&& value) { m_apiCachingBehaviorHasBeenSet = true; m_apiCachingBehavior = std::move(value); }
|
|
|
|
/**
|
|
* <p>Caching behavior.</p> <ul> <li> <p> <b>FULL_REQUEST_CACHING</b>: All requests
|
|
* are fully cached.</p> </li> <li> <p> <b>PER_RESOLVER_CACHING</b>: Individual
|
|
* resovlers that you specify are cached.</p> </li> </ul>
|
|
*/
|
|
inline UpdateApiCacheRequest& WithApiCachingBehavior(const ApiCachingBehavior& value) { SetApiCachingBehavior(value); return *this;}
|
|
|
|
/**
|
|
* <p>Caching behavior.</p> <ul> <li> <p> <b>FULL_REQUEST_CACHING</b>: All requests
|
|
* are fully cached.</p> </li> <li> <p> <b>PER_RESOLVER_CACHING</b>: Individual
|
|
* resovlers that you specify are cached.</p> </li> </ul>
|
|
*/
|
|
inline UpdateApiCacheRequest& WithApiCachingBehavior(ApiCachingBehavior&& value) { SetApiCachingBehavior(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The cache instance type. Valid values are </p> <ul> <li> <p>
|
|
* <code>SMALL</code> </p> </li> <li> <p> <code>MEDIUM</code> </p> </li> <li> <p>
|
|
* <code>LARGE</code> </p> </li> <li> <p> <code>XLARGE</code> </p> </li> <li> <p>
|
|
* <code>LARGE_2X</code> </p> </li> <li> <p> <code>LARGE_4X</code> </p> </li> <li>
|
|
* <p> <code>LARGE_8X</code> (not available in all regions)</p> </li> <li> <p>
|
|
* <code>LARGE_12X</code> </p> </li> </ul> <p>Historically, instance types were
|
|
* identified by an EC2-style value. As of July 2020, this is deprecated, and the
|
|
* generic identifiers above should be used.</p> <p>The following legacy instance
|
|
* types are avaible, but their use is discouraged:</p> <ul> <li> <p>
|
|
* <b>T2_SMALL</b>: A t2.small instance type.</p> </li> <li> <p> <b>T2_MEDIUM</b>:
|
|
* A t2.medium instance type.</p> </li> <li> <p> <b>R4_LARGE</b>: A r4.large
|
|
* instance type.</p> </li> <li> <p> <b>R4_XLARGE</b>: A r4.xlarge instance
|
|
* type.</p> </li> <li> <p> <b>R4_2XLARGE</b>: A r4.2xlarge instance type.</p>
|
|
* </li> <li> <p> <b>R4_4XLARGE</b>: A r4.4xlarge instance type.</p> </li> <li> <p>
|
|
* <b>R4_8XLARGE</b>: A r4.8xlarge instance type.</p> </li> </ul>
|
|
*/
|
|
inline const ApiCacheType& GetType() const{ return m_type; }
|
|
|
|
/**
|
|
* <p>The cache instance type. Valid values are </p> <ul> <li> <p>
|
|
* <code>SMALL</code> </p> </li> <li> <p> <code>MEDIUM</code> </p> </li> <li> <p>
|
|
* <code>LARGE</code> </p> </li> <li> <p> <code>XLARGE</code> </p> </li> <li> <p>
|
|
* <code>LARGE_2X</code> </p> </li> <li> <p> <code>LARGE_4X</code> </p> </li> <li>
|
|
* <p> <code>LARGE_8X</code> (not available in all regions)</p> </li> <li> <p>
|
|
* <code>LARGE_12X</code> </p> </li> </ul> <p>Historically, instance types were
|
|
* identified by an EC2-style value. As of July 2020, this is deprecated, and the
|
|
* generic identifiers above should be used.</p> <p>The following legacy instance
|
|
* types are avaible, but their use is discouraged:</p> <ul> <li> <p>
|
|
* <b>T2_SMALL</b>: A t2.small instance type.</p> </li> <li> <p> <b>T2_MEDIUM</b>:
|
|
* A t2.medium instance type.</p> </li> <li> <p> <b>R4_LARGE</b>: A r4.large
|
|
* instance type.</p> </li> <li> <p> <b>R4_XLARGE</b>: A r4.xlarge instance
|
|
* type.</p> </li> <li> <p> <b>R4_2XLARGE</b>: A r4.2xlarge instance type.</p>
|
|
* </li> <li> <p> <b>R4_4XLARGE</b>: A r4.4xlarge instance type.</p> </li> <li> <p>
|
|
* <b>R4_8XLARGE</b>: A r4.8xlarge instance type.</p> </li> </ul>
|
|
*/
|
|
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The cache instance type. Valid values are </p> <ul> <li> <p>
|
|
* <code>SMALL</code> </p> </li> <li> <p> <code>MEDIUM</code> </p> </li> <li> <p>
|
|
* <code>LARGE</code> </p> </li> <li> <p> <code>XLARGE</code> </p> </li> <li> <p>
|
|
* <code>LARGE_2X</code> </p> </li> <li> <p> <code>LARGE_4X</code> </p> </li> <li>
|
|
* <p> <code>LARGE_8X</code> (not available in all regions)</p> </li> <li> <p>
|
|
* <code>LARGE_12X</code> </p> </li> </ul> <p>Historically, instance types were
|
|
* identified by an EC2-style value. As of July 2020, this is deprecated, and the
|
|
* generic identifiers above should be used.</p> <p>The following legacy instance
|
|
* types are avaible, but their use is discouraged:</p> <ul> <li> <p>
|
|
* <b>T2_SMALL</b>: A t2.small instance type.</p> </li> <li> <p> <b>T2_MEDIUM</b>:
|
|
* A t2.medium instance type.</p> </li> <li> <p> <b>R4_LARGE</b>: A r4.large
|
|
* instance type.</p> </li> <li> <p> <b>R4_XLARGE</b>: A r4.xlarge instance
|
|
* type.</p> </li> <li> <p> <b>R4_2XLARGE</b>: A r4.2xlarge instance type.</p>
|
|
* </li> <li> <p> <b>R4_4XLARGE</b>: A r4.4xlarge instance type.</p> </li> <li> <p>
|
|
* <b>R4_8XLARGE</b>: A r4.8xlarge instance type.</p> </li> </ul>
|
|
*/
|
|
inline void SetType(const ApiCacheType& value) { m_typeHasBeenSet = true; m_type = value; }
|
|
|
|
/**
|
|
* <p>The cache instance type. Valid values are </p> <ul> <li> <p>
|
|
* <code>SMALL</code> </p> </li> <li> <p> <code>MEDIUM</code> </p> </li> <li> <p>
|
|
* <code>LARGE</code> </p> </li> <li> <p> <code>XLARGE</code> </p> </li> <li> <p>
|
|
* <code>LARGE_2X</code> </p> </li> <li> <p> <code>LARGE_4X</code> </p> </li> <li>
|
|
* <p> <code>LARGE_8X</code> (not available in all regions)</p> </li> <li> <p>
|
|
* <code>LARGE_12X</code> </p> </li> </ul> <p>Historically, instance types were
|
|
* identified by an EC2-style value. As of July 2020, this is deprecated, and the
|
|
* generic identifiers above should be used.</p> <p>The following legacy instance
|
|
* types are avaible, but their use is discouraged:</p> <ul> <li> <p>
|
|
* <b>T2_SMALL</b>: A t2.small instance type.</p> </li> <li> <p> <b>T2_MEDIUM</b>:
|
|
* A t2.medium instance type.</p> </li> <li> <p> <b>R4_LARGE</b>: A r4.large
|
|
* instance type.</p> </li> <li> <p> <b>R4_XLARGE</b>: A r4.xlarge instance
|
|
* type.</p> </li> <li> <p> <b>R4_2XLARGE</b>: A r4.2xlarge instance type.</p>
|
|
* </li> <li> <p> <b>R4_4XLARGE</b>: A r4.4xlarge instance type.</p> </li> <li> <p>
|
|
* <b>R4_8XLARGE</b>: A r4.8xlarge instance type.</p> </li> </ul>
|
|
*/
|
|
inline void SetType(ApiCacheType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
|
|
|
|
/**
|
|
* <p>The cache instance type. Valid values are </p> <ul> <li> <p>
|
|
* <code>SMALL</code> </p> </li> <li> <p> <code>MEDIUM</code> </p> </li> <li> <p>
|
|
* <code>LARGE</code> </p> </li> <li> <p> <code>XLARGE</code> </p> </li> <li> <p>
|
|
* <code>LARGE_2X</code> </p> </li> <li> <p> <code>LARGE_4X</code> </p> </li> <li>
|
|
* <p> <code>LARGE_8X</code> (not available in all regions)</p> </li> <li> <p>
|
|
* <code>LARGE_12X</code> </p> </li> </ul> <p>Historically, instance types were
|
|
* identified by an EC2-style value. As of July 2020, this is deprecated, and the
|
|
* generic identifiers above should be used.</p> <p>The following legacy instance
|
|
* types are avaible, but their use is discouraged:</p> <ul> <li> <p>
|
|
* <b>T2_SMALL</b>: A t2.small instance type.</p> </li> <li> <p> <b>T2_MEDIUM</b>:
|
|
* A t2.medium instance type.</p> </li> <li> <p> <b>R4_LARGE</b>: A r4.large
|
|
* instance type.</p> </li> <li> <p> <b>R4_XLARGE</b>: A r4.xlarge instance
|
|
* type.</p> </li> <li> <p> <b>R4_2XLARGE</b>: A r4.2xlarge instance type.</p>
|
|
* </li> <li> <p> <b>R4_4XLARGE</b>: A r4.4xlarge instance type.</p> </li> <li> <p>
|
|
* <b>R4_8XLARGE</b>: A r4.8xlarge instance type.</p> </li> </ul>
|
|
*/
|
|
inline UpdateApiCacheRequest& WithType(const ApiCacheType& value) { SetType(value); return *this;}
|
|
|
|
/**
|
|
* <p>The cache instance type. Valid values are </p> <ul> <li> <p>
|
|
* <code>SMALL</code> </p> </li> <li> <p> <code>MEDIUM</code> </p> </li> <li> <p>
|
|
* <code>LARGE</code> </p> </li> <li> <p> <code>XLARGE</code> </p> </li> <li> <p>
|
|
* <code>LARGE_2X</code> </p> </li> <li> <p> <code>LARGE_4X</code> </p> </li> <li>
|
|
* <p> <code>LARGE_8X</code> (not available in all regions)</p> </li> <li> <p>
|
|
* <code>LARGE_12X</code> </p> </li> </ul> <p>Historically, instance types were
|
|
* identified by an EC2-style value. As of July 2020, this is deprecated, and the
|
|
* generic identifiers above should be used.</p> <p>The following legacy instance
|
|
* types are avaible, but their use is discouraged:</p> <ul> <li> <p>
|
|
* <b>T2_SMALL</b>: A t2.small instance type.</p> </li> <li> <p> <b>T2_MEDIUM</b>:
|
|
* A t2.medium instance type.</p> </li> <li> <p> <b>R4_LARGE</b>: A r4.large
|
|
* instance type.</p> </li> <li> <p> <b>R4_XLARGE</b>: A r4.xlarge instance
|
|
* type.</p> </li> <li> <p> <b>R4_2XLARGE</b>: A r4.2xlarge instance type.</p>
|
|
* </li> <li> <p> <b>R4_4XLARGE</b>: A r4.4xlarge instance type.</p> </li> <li> <p>
|
|
* <b>R4_8XLARGE</b>: A r4.8xlarge instance type.</p> </li> </ul>
|
|
*/
|
|
inline UpdateApiCacheRequest& WithType(ApiCacheType&& value) { SetType(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_apiId;
|
|
bool m_apiIdHasBeenSet;
|
|
|
|
long long m_ttl;
|
|
bool m_ttlHasBeenSet;
|
|
|
|
ApiCachingBehavior m_apiCachingBehavior;
|
|
bool m_apiCachingBehaviorHasBeenSet;
|
|
|
|
ApiCacheType m_type;
|
|
bool m_typeHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace AppSync
|
|
} // namespace Aws
|