AWS SDK for C++  0.14.3
AWS SDK for C++
GlobalSecondaryIndexUpdate.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace DynamoDB
31 {
32 namespace Model
33 {
34 
43  {
44  public:
47  GlobalSecondaryIndexUpdate& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
48  Aws::Utils::Json::JsonValue Jsonize() const;
49 
54  inline const UpdateGlobalSecondaryIndexAction& GetUpdate() const{ return m_update; }
55 
60  inline void SetUpdate(const UpdateGlobalSecondaryIndexAction& value) { m_updateHasBeenSet = true; m_update = value; }
61 
66  inline void SetUpdate(UpdateGlobalSecondaryIndexAction&& value) { m_updateHasBeenSet = true; m_update = value; }
67 
72  inline GlobalSecondaryIndexUpdate& WithUpdate(const UpdateGlobalSecondaryIndexAction& value) { SetUpdate(value); return *this;}
73 
78  inline GlobalSecondaryIndexUpdate& WithUpdate(UpdateGlobalSecondaryIndexAction&& value) { SetUpdate(value); return *this;}
79 
87  inline const CreateGlobalSecondaryIndexAction& GetCreate() const{ return m_create; }
88 
96  inline void SetCreate(const CreateGlobalSecondaryIndexAction& value) { m_createHasBeenSet = true; m_create = value; }
97 
105  inline void SetCreate(CreateGlobalSecondaryIndexAction&& value) { m_createHasBeenSet = true; m_create = value; }
106 
114  inline GlobalSecondaryIndexUpdate& WithCreate(const CreateGlobalSecondaryIndexAction& value) { SetCreate(value); return *this;}
115 
123  inline GlobalSecondaryIndexUpdate& WithCreate(CreateGlobalSecondaryIndexAction&& value) { SetCreate(value); return *this;}
124 
128  inline const DeleteGlobalSecondaryIndexAction& GetDelete() const{ return m_delete; }
129 
133  inline void SetDelete(const DeleteGlobalSecondaryIndexAction& value) { m_deleteHasBeenSet = true; m_delete = value; }
134 
138  inline void SetDelete(DeleteGlobalSecondaryIndexAction&& value) { m_deleteHasBeenSet = true; m_delete = value; }
139 
143  inline GlobalSecondaryIndexUpdate& WithDelete(const DeleteGlobalSecondaryIndexAction& value) { SetDelete(value); return *this;}
144 
148  inline GlobalSecondaryIndexUpdate& WithDelete(DeleteGlobalSecondaryIndexAction&& value) { SetDelete(value); return *this;}
149 
150  private:
152  bool m_updateHasBeenSet;
154  bool m_createHasBeenSet;
156  bool m_deleteHasBeenSet;
157  };
158 
159 } // namespace Model
160 } // namespace DynamoDB
161 } // namespace Aws
const DeleteGlobalSecondaryIndexAction & GetDelete() const
void SetDelete(DeleteGlobalSecondaryIndexAction &&value)
void SetDelete(const DeleteGlobalSecondaryIndexAction &value)
void SetUpdate(UpdateGlobalSecondaryIndexAction &&value)
void SetCreate(const CreateGlobalSecondaryIndexAction &value)
#define AWS_DYNAMODB_API
void SetCreate(CreateGlobalSecondaryIndexAction &&value)
GlobalSecondaryIndexUpdate & WithCreate(CreateGlobalSecondaryIndexAction &&value)
const CreateGlobalSecondaryIndexAction & GetCreate() const
GlobalSecondaryIndexUpdate & WithUpdate(const UpdateGlobalSecondaryIndexAction &value)
GlobalSecondaryIndexUpdate & WithDelete(const DeleteGlobalSecondaryIndexAction &value)
GlobalSecondaryIndexUpdate & WithDelete(DeleteGlobalSecondaryIndexAction &&value)
const UpdateGlobalSecondaryIndexAction & GetUpdate() const
GlobalSecondaryIndexUpdate & WithCreate(const CreateGlobalSecondaryIndexAction &value)
void SetUpdate(const UpdateGlobalSecondaryIndexAction &value)
GlobalSecondaryIndexUpdate & WithUpdate(UpdateGlobalSecondaryIndexAction &&value)
JSON (JavaScript Object Notation).