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/guardduty/GuardDuty_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 GuardDuty
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>Contains information on the owner of the bucket.</p><p><h3>See Also:</h3>
28    * <a href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/Owner">AWS
29    * API Reference</a></p>
30    */
31   class AWS_GUARDDUTY_API Owner
32   {
33   public:
34     Owner();
35     Owner(Aws::Utils::Json::JsonView jsonValue);
36     Owner& operator=(Aws::Utils::Json::JsonView jsonValue);
37     Aws::Utils::Json::JsonValue Jsonize() const;
38 
39 
40     /**
41      * <p>The canonical user ID of the bucket owner. For information about locating
42      * your canonical user ID see <a
43      * href="https://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html#FindingCanonicalId">Finding
44      * Your Account Canonical User ID.</a> </p>
45      */
GetId()46     inline const Aws::String& GetId() const{ return m_id; }
47 
48     /**
49      * <p>The canonical user ID of the bucket owner. For information about locating
50      * your canonical user ID see <a
51      * href="https://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html#FindingCanonicalId">Finding
52      * Your Account Canonical User ID.</a> </p>
53      */
IdHasBeenSet()54     inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
55 
56     /**
57      * <p>The canonical user ID of the bucket owner. For information about locating
58      * your canonical user ID see <a
59      * href="https://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html#FindingCanonicalId">Finding
60      * Your Account Canonical User ID.</a> </p>
61      */
SetId(const Aws::String & value)62     inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
63 
64     /**
65      * <p>The canonical user ID of the bucket owner. For information about locating
66      * your canonical user ID see <a
67      * href="https://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html#FindingCanonicalId">Finding
68      * Your Account Canonical User ID.</a> </p>
69      */
SetId(Aws::String && value)70     inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
71 
72     /**
73      * <p>The canonical user ID of the bucket owner. For information about locating
74      * your canonical user ID see <a
75      * href="https://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html#FindingCanonicalId">Finding
76      * Your Account Canonical User ID.</a> </p>
77      */
SetId(const char * value)78     inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
79 
80     /**
81      * <p>The canonical user ID of the bucket owner. For information about locating
82      * your canonical user ID see <a
83      * href="https://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html#FindingCanonicalId">Finding
84      * Your Account Canonical User ID.</a> </p>
85      */
WithId(const Aws::String & value)86     inline Owner& WithId(const Aws::String& value) { SetId(value); return *this;}
87 
88     /**
89      * <p>The canonical user ID of the bucket owner. For information about locating
90      * your canonical user ID see <a
91      * href="https://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html#FindingCanonicalId">Finding
92      * Your Account Canonical User ID.</a> </p>
93      */
WithId(Aws::String && value)94     inline Owner& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
95 
96     /**
97      * <p>The canonical user ID of the bucket owner. For information about locating
98      * your canonical user ID see <a
99      * href="https://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html#FindingCanonicalId">Finding
100      * Your Account Canonical User ID.</a> </p>
101      */
WithId(const char * value)102     inline Owner& WithId(const char* value) { SetId(value); return *this;}
103 
104   private:
105 
106     Aws::String m_id;
107     bool m_idHasBeenSet;
108   };
109 
110 } // namespace Model
111 } // namespace GuardDuty
112 } // namespace Aws
113