1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/securityhub/SecurityHub_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17   class JsonValue;
18   class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace SecurityHub
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>A component of the key schema for the DynamoDB table, a global secondary
28    * index, or a local secondary index.</p><p><h3>See Also:</h3>   <a
29    * href="http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/AwsDynamoDbTableKeySchema">AWS
30    * API Reference</a></p>
31    */
32   class AWS_SECURITYHUB_API AwsDynamoDbTableKeySchema
33   {
34   public:
35     AwsDynamoDbTableKeySchema();
36     AwsDynamoDbTableKeySchema(Aws::Utils::Json::JsonView jsonValue);
37     AwsDynamoDbTableKeySchema& operator=(Aws::Utils::Json::JsonView jsonValue);
38     Aws::Utils::Json::JsonValue Jsonize() const;
39 
40 
41     /**
42      * <p>The name of the key schema attribute.</p>
43      */
GetAttributeName()44     inline const Aws::String& GetAttributeName() const{ return m_attributeName; }
45 
46     /**
47      * <p>The name of the key schema attribute.</p>
48      */
AttributeNameHasBeenSet()49     inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
50 
51     /**
52      * <p>The name of the key schema attribute.</p>
53      */
SetAttributeName(const Aws::String & value)54     inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
55 
56     /**
57      * <p>The name of the key schema attribute.</p>
58      */
SetAttributeName(Aws::String && value)59     inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); }
60 
61     /**
62      * <p>The name of the key schema attribute.</p>
63      */
SetAttributeName(const char * value)64     inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
65 
66     /**
67      * <p>The name of the key schema attribute.</p>
68      */
WithAttributeName(const Aws::String & value)69     inline AwsDynamoDbTableKeySchema& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
70 
71     /**
72      * <p>The name of the key schema attribute.</p>
73      */
WithAttributeName(Aws::String && value)74     inline AwsDynamoDbTableKeySchema& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;}
75 
76     /**
77      * <p>The name of the key schema attribute.</p>
78      */
WithAttributeName(const char * value)79     inline AwsDynamoDbTableKeySchema& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
80 
81 
82     /**
83      * <p>The type of key used for the key schema attribute.</p>
84      */
GetKeyType()85     inline const Aws::String& GetKeyType() const{ return m_keyType; }
86 
87     /**
88      * <p>The type of key used for the key schema attribute.</p>
89      */
KeyTypeHasBeenSet()90     inline bool KeyTypeHasBeenSet() const { return m_keyTypeHasBeenSet; }
91 
92     /**
93      * <p>The type of key used for the key schema attribute.</p>
94      */
SetKeyType(const Aws::String & value)95     inline void SetKeyType(const Aws::String& value) { m_keyTypeHasBeenSet = true; m_keyType = value; }
96 
97     /**
98      * <p>The type of key used for the key schema attribute.</p>
99      */
SetKeyType(Aws::String && value)100     inline void SetKeyType(Aws::String&& value) { m_keyTypeHasBeenSet = true; m_keyType = std::move(value); }
101 
102     /**
103      * <p>The type of key used for the key schema attribute.</p>
104      */
SetKeyType(const char * value)105     inline void SetKeyType(const char* value) { m_keyTypeHasBeenSet = true; m_keyType.assign(value); }
106 
107     /**
108      * <p>The type of key used for the key schema attribute.</p>
109      */
WithKeyType(const Aws::String & value)110     inline AwsDynamoDbTableKeySchema& WithKeyType(const Aws::String& value) { SetKeyType(value); return *this;}
111 
112     /**
113      * <p>The type of key used for the key schema attribute.</p>
114      */
WithKeyType(Aws::String && value)115     inline AwsDynamoDbTableKeySchema& WithKeyType(Aws::String&& value) { SetKeyType(std::move(value)); return *this;}
116 
117     /**
118      * <p>The type of key used for the key schema attribute.</p>
119      */
WithKeyType(const char * value)120     inline AwsDynamoDbTableKeySchema& WithKeyType(const char* value) { SetKeyType(value); return *this;}
121 
122   private:
123 
124     Aws::String m_attributeName;
125     bool m_attributeNameHasBeenSet;
126 
127     Aws::String m_keyType;
128     bool m_keyTypeHasBeenSet;
129   };
130 
131 } // namespace Model
132 } // namespace SecurityHub
133 } // namespace Aws
134