AWS SDK for C++  1.9.66
AWS SDK for C++
UpdateMemberSessionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Macie2
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UpdateMemberSession"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
40  inline const Aws::String& GetId() const{ return m_id; }
41 
46  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
47 
52  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
53 
58  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
59 
64  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
65 
70  inline UpdateMemberSessionRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
71 
76  inline UpdateMemberSessionRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
77 
82  inline UpdateMemberSessionRequest& WithId(const char* value) { SetId(value); return *this;}
83 
84 
90  inline const MacieStatus& GetStatus() const{ return m_status; }
91 
97  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 
104  inline void SetStatus(const MacieStatus& value) { m_statusHasBeenSet = true; m_status = value; }
105 
111  inline void SetStatus(MacieStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
112 
118  inline UpdateMemberSessionRequest& WithStatus(const MacieStatus& value) { SetStatus(value); return *this;}
119 
125  inline UpdateMemberSessionRequest& WithStatus(MacieStatus&& value) { SetStatus(std::move(value)); return *this;}
126 
127  private:
128 
129  Aws::String m_id;
130  bool m_idHasBeenSet;
131 
132  MacieStatus m_status;
133  bool m_statusHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace Macie2
138 } // namespace Aws
Aws::Macie2::Model::UpdateMemberSessionRequest::SetId
void SetId(Aws::String &&value)
Definition: UpdateMemberSessionRequest.h:58
Aws::Macie2::Model::UpdateMemberSessionRequest::SetId
void SetId(const Aws::String &value)
Definition: UpdateMemberSessionRequest.h:52
AWS_MACIE2_API
#define AWS_MACIE2_API
Definition: Macie2_EXPORTS.h:28
MacieStatus.h
Aws::Macie2::Model::UpdateMemberSessionRequest::UpdateMemberSessionRequest
UpdateMemberSessionRequest()
Aws::Macie2::Model::UpdateMemberSessionRequest::SetStatus
void SetStatus(MacieStatus &&value)
Definition: UpdateMemberSessionRequest.h:111
Macie2_EXPORTS.h
Aws::Macie2::Model::UpdateMemberSessionRequest::GetStatus
const MacieStatus & GetStatus() const
Definition: UpdateMemberSessionRequest.h:90
Aws::Macie2::Model::MacieStatus
MacieStatus
Definition: MacieStatus.h:17
Aws::Macie2::Macie2Request
Definition: Macie2Request.h:17
Aws::Macie2::Model::UpdateMemberSessionRequest::WithStatus
UpdateMemberSessionRequest & WithStatus(const MacieStatus &value)
Definition: UpdateMemberSessionRequest.h:118
Aws::Macie2::Model::UpdateMemberSessionRequest::WithId
UpdateMemberSessionRequest & WithId(const char *value)
Definition: UpdateMemberSessionRequest.h:82
Macie2Request.h
Aws::Macie2::Model::UpdateMemberSessionRequest::SetStatus
void SetStatus(const MacieStatus &value)
Definition: UpdateMemberSessionRequest.h:104
Aws::Macie2::Model::UpdateMemberSessionRequest::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: UpdateMemberSessionRequest.h:97
Aws::Macie2::Model::UpdateMemberSessionRequest::SetId
void SetId(const char *value)
Definition: UpdateMemberSessionRequest.h:64
Aws::Macie2::Model::UpdateMemberSessionRequest::WithId
UpdateMemberSessionRequest & WithId(Aws::String &&value)
Definition: UpdateMemberSessionRequest.h:76
AWSString.h
Aws::Macie2::Model::UpdateMemberSessionRequest
Definition: UpdateMemberSessionRequest.h:23
Aws::Macie2::Model::UpdateMemberSessionRequest::WithId
UpdateMemberSessionRequest & WithId(const Aws::String &value)
Definition: UpdateMemberSessionRequest.h:70
Aws::Macie2::Model::UpdateMemberSessionRequest::IdHasBeenSet
bool IdHasBeenSet() const
Definition: UpdateMemberSessionRequest.h:46
Aws::Macie2::Model::UpdateMemberSessionRequest::WithStatus
UpdateMemberSessionRequest & WithStatus(MacieStatus &&value)
Definition: UpdateMemberSessionRequest.h:125
Aws
Definition: AccessManagementClient.h:15
Aws::Macie2::Model::UpdateMemberSessionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateMemberSessionRequest.h:31
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Macie2::Model::UpdateMemberSessionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Macie2::Model::UpdateMemberSessionRequest::GetId
const Aws::String & GetId() const
Definition: UpdateMemberSessionRequest.h:40