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/quicksight/QuickSight_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 template<typename RESULT_TYPE>
14 class AmazonWebServiceResult;
15 
16 namespace Utils
17 {
18 namespace Json
19 {
20   class JsonValue;
21 } // namespace Json
22 } // namespace Utils
23 namespace QuickSight
24 {
25 namespace Model
26 {
27   class AWS_QUICKSIGHT_API UpdateIpRestrictionResult
28   {
29   public:
30     UpdateIpRestrictionResult();
31     UpdateIpRestrictionResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
32     UpdateIpRestrictionResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
33 
34 
35     /**
36      * <p>Your AWS account ID.</p>
37      */
GetAwsAccountId()38     inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
39 
40     /**
41      * <p>Your AWS account ID.</p>
42      */
SetAwsAccountId(const Aws::String & value)43     inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountId = value; }
44 
45     /**
46      * <p>Your AWS account ID.</p>
47      */
SetAwsAccountId(Aws::String && value)48     inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountId = std::move(value); }
49 
50     /**
51      * <p>Your AWS account ID.</p>
52      */
SetAwsAccountId(const char * value)53     inline void SetAwsAccountId(const char* value) { m_awsAccountId.assign(value); }
54 
55     /**
56      * <p>Your AWS account ID.</p>
57      */
WithAwsAccountId(const Aws::String & value)58     inline UpdateIpRestrictionResult& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
59 
60     /**
61      * <p>Your AWS account ID.</p>
62      */
WithAwsAccountId(Aws::String && value)63     inline UpdateIpRestrictionResult& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
64 
65     /**
66      * <p>Your AWS account ID.</p>
67      */
WithAwsAccountId(const char * value)68     inline UpdateIpRestrictionResult& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
69 
70 
71     /**
72      * <p>The ID of the update request.</p>
73      */
GetRequestId()74     inline const Aws::String& GetRequestId() const{ return m_requestId; }
75 
76     /**
77      * <p>The ID of the update request.</p>
78      */
SetRequestId(const Aws::String & value)79     inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
80 
81     /**
82      * <p>The ID of the update request.</p>
83      */
SetRequestId(Aws::String && value)84     inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
85 
86     /**
87      * <p>The ID of the update request.</p>
88      */
SetRequestId(const char * value)89     inline void SetRequestId(const char* value) { m_requestId.assign(value); }
90 
91     /**
92      * <p>The ID of the update request.</p>
93      */
WithRequestId(const Aws::String & value)94     inline UpdateIpRestrictionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
95 
96     /**
97      * <p>The ID of the update request.</p>
98      */
WithRequestId(Aws::String && value)99     inline UpdateIpRestrictionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
100 
101     /**
102      * <p>The ID of the update request.</p>
103      */
WithRequestId(const char * value)104     inline UpdateIpRestrictionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
105 
106 
107     /**
108      * <p>The status of the updated IP rules. A successful request returns a 200
109      * code.</p>
110      */
GetStatus()111     inline int GetStatus() const{ return m_status; }
112 
113     /**
114      * <p>The status of the updated IP rules. A successful request returns a 200
115      * code.</p>
116      */
SetStatus(int value)117     inline void SetStatus(int value) { m_status = value; }
118 
119     /**
120      * <p>The status of the updated IP rules. A successful request returns a 200
121      * code.</p>
122      */
WithStatus(int value)123     inline UpdateIpRestrictionResult& WithStatus(int value) { SetStatus(value); return *this;}
124 
125   private:
126 
127     Aws::String m_awsAccountId;
128 
129     Aws::String m_requestId;
130 
131     int m_status;
132   };
133 
134 } // namespace Model
135 } // namespace QuickSight
136 } // namespace Aws
137