AWS SDK for C++  0.12.9
AWS SDK for C++
GrantConstraints.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
16 #include <aws/kms/KMS_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace KMS
30 {
31 namespace Model
32 {
33 
43  {
44  public:
47  GrantConstraints& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
48  Aws::Utils::Json::JsonValue Jsonize() const;
49 
57  inline const Aws::Map<Aws::String, Aws::String>& GetEncryptionContextSubset() const{ return m_encryptionContextSubset; }
58 
66  inline void SetEncryptionContextSubset(const Aws::Map<Aws::String, Aws::String>& value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset = value; }
67 
75  inline void SetEncryptionContextSubset(Aws::Map<Aws::String, Aws::String>&& value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset = value; }
76 
84  inline GrantConstraints& WithEncryptionContextSubset(const Aws::Map<Aws::String, Aws::String>& value) { SetEncryptionContextSubset(value); return *this;}
85 
93  inline GrantConstraints& WithEncryptionContextSubset(Aws::Map<Aws::String, Aws::String>&& value) { SetEncryptionContextSubset(value); return *this;}
94 
102  inline GrantConstraints& AddEncryptionContextSubset(const Aws::String& key, const Aws::String& value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset[key] = value; return *this; }
103 
111  inline GrantConstraints& AddEncryptionContextSubset(Aws::String&& key, const Aws::String& value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset[key] = value; return *this; }
112 
120  inline GrantConstraints& AddEncryptionContextSubset(const Aws::String& key, Aws::String&& value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset[key] = value; return *this; }
121 
129  inline GrantConstraints& AddEncryptionContextSubset(Aws::String&& key, Aws::String&& value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset[key] = value; return *this; }
130 
138  inline GrantConstraints& AddEncryptionContextSubset(const char* key, Aws::String&& value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset[key] = value; return *this; }
139 
147  inline GrantConstraints& AddEncryptionContextSubset(Aws::String&& key, const char* value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset[key] = value; return *this; }
148 
156  inline GrantConstraints& AddEncryptionContextSubset(const char* key, const char* value) { m_encryptionContextSubsetHasBeenSet = true; m_encryptionContextSubset[key] = value; return *this; }
157 
165  inline const Aws::Map<Aws::String, Aws::String>& GetEncryptionContextEquals() const{ return m_encryptionContextEquals; }
166 
174  inline void SetEncryptionContextEquals(const Aws::Map<Aws::String, Aws::String>& value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals = value; }
175 
183  inline void SetEncryptionContextEquals(Aws::Map<Aws::String, Aws::String>&& value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals = value; }
184 
192  inline GrantConstraints& WithEncryptionContextEquals(const Aws::Map<Aws::String, Aws::String>& value) { SetEncryptionContextEquals(value); return *this;}
193 
201  inline GrantConstraints& WithEncryptionContextEquals(Aws::Map<Aws::String, Aws::String>&& value) { SetEncryptionContextEquals(value); return *this;}
202 
210  inline GrantConstraints& AddEncryptionContextEquals(const Aws::String& key, const Aws::String& value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals[key] = value; return *this; }
211 
219  inline GrantConstraints& AddEncryptionContextEquals(Aws::String&& key, const Aws::String& value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals[key] = value; return *this; }
220 
228  inline GrantConstraints& AddEncryptionContextEquals(const Aws::String& key, Aws::String&& value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals[key] = value; return *this; }
229 
237  inline GrantConstraints& AddEncryptionContextEquals(Aws::String&& key, Aws::String&& value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals[key] = value; return *this; }
238 
246  inline GrantConstraints& AddEncryptionContextEquals(const char* key, Aws::String&& value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals[key] = value; return *this; }
247 
255  inline GrantConstraints& AddEncryptionContextEquals(Aws::String&& key, const char* value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals[key] = value; return *this; }
256 
264  inline GrantConstraints& AddEncryptionContextEquals(const char* key, const char* value) { m_encryptionContextEqualsHasBeenSet = true; m_encryptionContextEquals[key] = value; return *this; }
265 
266  private:
267  Aws::Map<Aws::String, Aws::String> m_encryptionContextSubset;
268  bool m_encryptionContextSubsetHasBeenSet;
269  Aws::Map<Aws::String, Aws::String> m_encryptionContextEquals;
270  bool m_encryptionContextEqualsHasBeenSet;
271  };
272 
273 } // namespace Model
274 } // namespace KMS
275 } // namespace Aws
GrantConstraints & AddEncryptionContextEquals(Aws::String &&key, const char *value)
GrantConstraints & AddEncryptionContextSubset(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetEncryptionContextSubset() const
GrantConstraints & WithEncryptionContextSubset(Aws::Map< Aws::String, Aws::String > &&value)
GrantConstraints & AddEncryptionContextSubset(Aws::String &&key, const Aws::String &value)
GrantConstraints & AddEncryptionContextSubset(const char *key, Aws::String &&value)
GrantConstraints & AddEncryptionContextSubset(const char *key, const char *value)
GrantConstraints & AddEncryptionContextSubset(Aws::String &&key, const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
GrantConstraints & WithEncryptionContextEquals(const Aws::Map< Aws::String, Aws::String > &value)
GrantConstraints & WithEncryptionContextEquals(Aws::Map< Aws::String, Aws::String > &&value)
GrantConstraints & AddEncryptionContextEquals(Aws::String &&key, const Aws::String &value)
GrantConstraints & WithEncryptionContextSubset(const Aws::Map< Aws::String, Aws::String > &value)
void SetEncryptionContextSubset(const Aws::Map< Aws::String, Aws::String > &value)
GrantConstraints & AddEncryptionContextEquals(Aws::String &&key, Aws::String &&value)
GrantConstraints & AddEncryptionContextSubset(const Aws::String &key, const Aws::String &value)
GrantConstraints & AddEncryptionContextEquals(const Aws::String &key, Aws::String &&value)
void SetEncryptionContextEquals(Aws::Map< Aws::String, Aws::String > &&value)
void SetEncryptionContextSubset(Aws::Map< Aws::String, Aws::String > &&value)
GrantConstraints & AddEncryptionContextSubset(const Aws::String &key, Aws::String &&value)
GrantConstraints & AddEncryptionContextEquals(const Aws::String &key, const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::Map< Aws::String, Aws::String > & GetEncryptionContextEquals() const
GrantConstraints & AddEncryptionContextEquals(const char *key, Aws::String &&value)
GrantConstraints & AddEncryptionContextEquals(const char *key, const char *value)
#define AWS_KMS_API
Definition: KMS_EXPORTS.h:34
void SetEncryptionContextEquals(const Aws::Map< Aws::String, Aws::String > &value)
JSON (JavaScript Object Notation).