AWS SDK for C++  1.9.40
AWS SDK for C++
UpdateAssociationStatusRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ssm/SSM_EXPORTS.h>
8 #include <aws/ssm/SSMRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SSM
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 "UpdateAssociationStatus"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetName() const{ return m_name; }
42 
46  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 
51  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 
56  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
57 
61  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
62 
66  inline UpdateAssociationStatusRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
67 
71  inline UpdateAssociationStatusRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
72 
76  inline UpdateAssociationStatusRequest& WithName(const char* value) { SetName(value); return *this;}
77 
78 
82  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
83 
87  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
88 
92  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
93 
97  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
98 
102  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
103 
107  inline UpdateAssociationStatusRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
108 
112  inline UpdateAssociationStatusRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
113 
117  inline UpdateAssociationStatusRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
118 
119 
123  inline const AssociationStatus& GetAssociationStatus() const{ return m_associationStatus; }
124 
128  inline bool AssociationStatusHasBeenSet() const { return m_associationStatusHasBeenSet; }
129 
133  inline void SetAssociationStatus(const AssociationStatus& value) { m_associationStatusHasBeenSet = true; m_associationStatus = value; }
134 
138  inline void SetAssociationStatus(AssociationStatus&& value) { m_associationStatusHasBeenSet = true; m_associationStatus = std::move(value); }
139 
143  inline UpdateAssociationStatusRequest& WithAssociationStatus(const AssociationStatus& value) { SetAssociationStatus(value); return *this;}
144 
148  inline UpdateAssociationStatusRequest& WithAssociationStatus(AssociationStatus&& value) { SetAssociationStatus(std::move(value)); return *this;}
149 
150  private:
151 
152  Aws::String m_name;
153  bool m_nameHasBeenSet;
154 
155  Aws::String m_instanceId;
156  bool m_instanceIdHasBeenSet;
157 
158  AssociationStatus m_associationStatus;
159  bool m_associationStatusHasBeenSet;
160  };
161 
162 } // namespace Model
163 } // namespace SSM
164 } // namespace Aws
Aws::SSM::Model::UpdateAssociationStatusRequest::WithName
UpdateAssociationStatusRequest & WithName(Aws::String &&value)
Definition: UpdateAssociationStatusRequest.h:71
Aws::SSM::Model::UpdateAssociationStatusRequest::AssociationStatusHasBeenSet
bool AssociationStatusHasBeenSet() const
Definition: UpdateAssociationStatusRequest.h:128
Aws::SSM::Model::UpdateAssociationStatusRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: UpdateAssociationStatusRequest.h:92
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
AWS_SSM_API
#define AWS_SSM_API
Definition: SSM_EXPORTS.h:28
Aws::SSM::Model::UpdateAssociationStatusRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SSM::Model::UpdateAssociationStatusRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateAssociationStatusRequest.h:46
Aws::SSM::Model::UpdateAssociationStatusRequest::WithInstanceId
UpdateAssociationStatusRequest & WithInstanceId(const char *value)
Definition: UpdateAssociationStatusRequest.h:117
Aws::SSM::Model::UpdateAssociationStatusRequest::SetName
void SetName(const char *value)
Definition: UpdateAssociationStatusRequest.h:61
Aws::SSM::Model::UpdateAssociationStatusRequest::WithInstanceId
UpdateAssociationStatusRequest & WithInstanceId(const Aws::String &value)
Definition: UpdateAssociationStatusRequest.h:107
SSM_EXPORTS.h
Aws::SSM::Model::UpdateAssociationStatusRequest::WithAssociationStatus
UpdateAssociationStatusRequest & WithAssociationStatus(const AssociationStatus &value)
Definition: UpdateAssociationStatusRequest.h:143
Aws::SSM::Model::UpdateAssociationStatusRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdateAssociationStatusRequest.h:51
AssociationStatus.h
Aws::SSM::Model::AssociationStatus
Definition: AssociationStatus.h:34
Aws::SSM::Model::UpdateAssociationStatusRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdateAssociationStatusRequest.h:56
Aws::SSM::Model::UpdateAssociationStatusRequest::WithAssociationStatus
UpdateAssociationStatusRequest & WithAssociationStatus(AssociationStatus &&value)
Definition: UpdateAssociationStatusRequest.h:148
Aws::SSM::Model::UpdateAssociationStatusRequest::SetAssociationStatus
void SetAssociationStatus(AssociationStatus &&value)
Definition: UpdateAssociationStatusRequest.h:138
Aws::SSM::Model::UpdateAssociationStatusRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: UpdateAssociationStatusRequest.h:102
AWSString.h
Aws::SSM::Model::UpdateAssociationStatusRequest::GetName
const Aws::String & GetName() const
Definition: UpdateAssociationStatusRequest.h:41
Aws::SSM::Model::UpdateAssociationStatusRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: UpdateAssociationStatusRequest.h:82
Aws::SMS::Model::AppValidationStrategy::NOT_SET
@ NOT_SET
Aws::SSM::Model::UpdateAssociationStatusRequest::SetAssociationStatus
void SetAssociationStatus(const AssociationStatus &value)
Definition: UpdateAssociationStatusRequest.h:133
Aws::SSM::Model::UpdateAssociationStatusRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: UpdateAssociationStatusRequest.h:97
Aws::SSM::Model::UpdateAssociationStatusRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SSM::Model::UpdateAssociationStatusRequest
Definition: UpdateAssociationStatusRequest.h:23
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SSM::Model::UpdateAssociationStatusRequest::UpdateAssociationStatusRequest
UpdateAssociationStatusRequest()
Aws::SSM::Model::UpdateAssociationStatusRequest::GetAssociationStatus
const AssociationStatus & GetAssociationStatus() const
Definition: UpdateAssociationStatusRequest.h:123
Aws::SSM::SSMRequest
Definition: SSMRequest.h:17
Aws::SSM::Model::UpdateAssociationStatusRequest::WithName
UpdateAssociationStatusRequest & WithName(const char *value)
Definition: UpdateAssociationStatusRequest.h:76
Aws::SSM::Model::UpdateAssociationStatusRequest::WithInstanceId
UpdateAssociationStatusRequest & WithInstanceId(Aws::String &&value)
Definition: UpdateAssociationStatusRequest.h:112
Aws::SSM::Model::UpdateAssociationStatusRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateAssociationStatusRequest.h:31
SSMRequest.h
Aws::SSM::Model::UpdateAssociationStatusRequest::WithName
UpdateAssociationStatusRequest & WithName(const Aws::String &value)
Definition: UpdateAssociationStatusRequest.h:66
Aws::SSM::Model::UpdateAssociationStatusRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: UpdateAssociationStatusRequest.h:87