AWS SDK for C++  0.14.3
AWS SDK for C++
UpdateGlobalSecondaryIndexAction.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace DynamoDB
30 {
31 namespace Model
32 {
33 
39  {
40  public:
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetIndexName() const{ return m_indexName; }
50 
54  inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
55 
59  inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
60 
64  inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); }
65 
69  inline UpdateGlobalSecondaryIndexAction& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
70 
74  inline UpdateGlobalSecondaryIndexAction& WithIndexName(Aws::String&& value) { SetIndexName(value); return *this;}
75 
79  inline UpdateGlobalSecondaryIndexAction& WithIndexName(const char* value) { SetIndexName(value); return *this;}
80 
81 
82  inline const ProvisionedThroughput& GetProvisionedThroughput() const{ return m_provisionedThroughput; }
83 
84 
85  inline void SetProvisionedThroughput(const ProvisionedThroughput& value) { m_provisionedThroughputHasBeenSet = true; m_provisionedThroughput = value; }
86 
87 
88  inline void SetProvisionedThroughput(ProvisionedThroughput&& value) { m_provisionedThroughputHasBeenSet = true; m_provisionedThroughput = value; }
89 
90 
91  inline UpdateGlobalSecondaryIndexAction& WithProvisionedThroughput(const ProvisionedThroughput& value) { SetProvisionedThroughput(value); return *this;}
92 
93 
94  inline UpdateGlobalSecondaryIndexAction& WithProvisionedThroughput(ProvisionedThroughput&& value) { SetProvisionedThroughput(value); return *this;}
95 
96  private:
97  Aws::String m_indexName;
98  bool m_indexNameHasBeenSet;
99  ProvisionedThroughput m_provisionedThroughput;
100  bool m_provisionedThroughputHasBeenSet;
101  };
102 
103 } // namespace Model
104 } // namespace DynamoDB
105 } // namespace Aws
UpdateGlobalSecondaryIndexAction & WithProvisionedThroughput(const ProvisionedThroughput &value)
UpdateGlobalSecondaryIndexAction & WithIndexName(const Aws::String &value)
#define AWS_DYNAMODB_API
UpdateGlobalSecondaryIndexAction & WithIndexName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateGlobalSecondaryIndexAction & WithProvisionedThroughput(ProvisionedThroughput &&value)
UpdateGlobalSecondaryIndexAction & WithIndexName(Aws::String &&value)
JSON (JavaScript Object Notation).