AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
UpdateReplicationSetRequest.h
1
6#pragma once
7#include <aws/ssm-incidents/SSMIncidents_EXPORTS.h>
8#include <aws/ssm-incidents/SSMIncidentsRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ssm-incidents/model/UpdateReplicationSetAction.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace SSMIncidents
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SSMINCIDENTS_API UpdateReplicationSetRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateReplicationSet"; }
34
35 AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::Vector<UpdateReplicationSetAction>& GetActions() const { return m_actions; }
43 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
44 template<typename ActionsT = Aws::Vector<UpdateReplicationSetAction>>
45 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
46 template<typename ActionsT = Aws::Vector<UpdateReplicationSetAction>>
47 UpdateReplicationSetRequest& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
48 template<typename ActionsT = UpdateReplicationSetAction>
49 UpdateReplicationSetRequest& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
51
53
56 inline const Aws::String& GetArn() const { return m_arn; }
57 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
58 template<typename ArnT = Aws::String>
59 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
60 template<typename ArnT = Aws::String>
61 UpdateReplicationSetRequest& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
63
65
69 inline const Aws::String& GetClientToken() const { return m_clientToken; }
70 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
71 template<typename ClientTokenT = Aws::String>
72 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
73 template<typename ClientTokenT = Aws::String>
74 UpdateReplicationSetRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
76 private:
77
79 bool m_actionsHasBeenSet = false;
80
81 Aws::String m_arn;
82 bool m_arnHasBeenSet = false;
83
85 bool m_clientTokenHasBeenSet = true;
86 };
87
88} // namespace Model
89} // namespace SSMIncidents
90} // namespace Aws
UpdateReplicationSetRequest & WithActions(ActionsT &&value)
const Aws::Vector< UpdateReplicationSetAction > & GetActions() const
UpdateReplicationSetRequest & WithClientToken(ClientTokenT &&value)
UpdateReplicationSetRequest & AddActions(ActionsT &&value)
AWS_SSMINCIDENTS_API UpdateReplicationSetRequest()=default
AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector