AWS SDK for C++  1.9.175
AWS SDK for C++
UpdateEnrollmentStatusRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ComputeOptimizer
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "UpdateEnrollmentStatus"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
52  inline const Status& GetStatus() const{ return m_status; }
53 
69  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
70 
86  inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; }
87 
103  inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
104 
120  inline UpdateEnrollmentStatusRequest& WithStatus(const Status& value) { SetStatus(value); return *this;}
121 
137  inline UpdateEnrollmentStatusRequest& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;}
138 
139 
144  inline bool GetIncludeMemberAccounts() const{ return m_includeMemberAccounts; }
145 
150  inline bool IncludeMemberAccountsHasBeenSet() const { return m_includeMemberAccountsHasBeenSet; }
151 
156  inline void SetIncludeMemberAccounts(bool value) { m_includeMemberAccountsHasBeenSet = true; m_includeMemberAccounts = value; }
157 
162  inline UpdateEnrollmentStatusRequest& WithIncludeMemberAccounts(bool value) { SetIncludeMemberAccounts(value); return *this;}
163 
164  private:
165 
166  Status m_status;
167  bool m_statusHasBeenSet;
168 
169  bool m_includeMemberAccounts;
170  bool m_includeMemberAccountsHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace ComputeOptimizer
175 } // namespace Aws
Aws::ComputeOptimizer::Model::UpdateEnrollmentStatusRequest::SetIncludeMemberAccounts
void SetIncludeMemberAccounts(bool value)
Definition: UpdateEnrollmentStatusRequest.h:156
Aws::ComputeOptimizer::Model::UpdateEnrollmentStatusRequest
Definition: UpdateEnrollmentStatusRequest.h:22
Aws::ComputeOptimizer::Model::UpdateEnrollmentStatusRequest::WithStatus
UpdateEnrollmentStatusRequest & WithStatus(Status &&value)
Definition: UpdateEnrollmentStatusRequest.h:137
Aws::ComputeOptimizer::Model::UpdateEnrollmentStatusRequest::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: UpdateEnrollmentStatusRequest.h:69
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ComputeOptimizer::Model::UpdateEnrollmentStatusRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ComputeOptimizer::Model::Status
Status
Definition: Status.h:17
ComputeOptimizerRequest.h
Aws::ComputeOptimizer::Model::UpdateEnrollmentStatusRequest::GetIncludeMemberAccounts
bool GetIncludeMemberAccounts() const
Definition: UpdateEnrollmentStatusRequest.h:144
Aws::ComputeOptimizer::Model::UpdateEnrollmentStatusRequest::SetStatus
void SetStatus(Status &&value)
Definition: UpdateEnrollmentStatusRequest.h:103
Aws::ComputeOptimizer::Model::UpdateEnrollmentStatusRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ComputeOptimizer::Model::UpdateEnrollmentStatusRequest::WithIncludeMemberAccounts
UpdateEnrollmentStatusRequest & WithIncludeMemberAccounts(bool value)
Definition: UpdateEnrollmentStatusRequest.h:162
Aws::ComputeOptimizer::Model::UpdateEnrollmentStatusRequest::GetStatus
const Status & GetStatus() const
Definition: UpdateEnrollmentStatusRequest.h:52
Aws::ComputeOptimizer::Model::UpdateEnrollmentStatusRequest::IncludeMemberAccountsHasBeenSet
bool IncludeMemberAccountsHasBeenSet() const
Definition: UpdateEnrollmentStatusRequest.h:150
Status.h
Aws::ComputeOptimizer::Model::UpdateEnrollmentStatusRequest::WithStatus
UpdateEnrollmentStatusRequest & WithStatus(const Status &value)
Definition: UpdateEnrollmentStatusRequest.h:120
Aws::ComputeOptimizer::Model::UpdateEnrollmentStatusRequest::UpdateEnrollmentStatusRequest
UpdateEnrollmentStatusRequest()
Aws::ComputeOptimizer::Model::UpdateEnrollmentStatusRequest::SetStatus
void SetStatus(const Status &value)
Definition: UpdateEnrollmentStatusRequest.h:86
ComputeOptimizer_EXPORTS.h
Aws::ComputeOptimizer::Model::UpdateEnrollmentStatusRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateEnrollmentStatusRequest.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ComputeOptimizer::ComputeOptimizerRequest
Definition: ComputeOptimizerRequest.h:17
AWS_COMPUTEOPTIMIZER_API
#define AWS_COMPUTEOPTIMIZER_API
Definition: ComputeOptimizer_EXPORTS.h:28