AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateRotationOverrideRequest.h
1
6#pragma once
7#include <aws/ssm-contacts/SSMContacts_EXPORTS.h>
8#include <aws/ssm-contacts/SSMContactsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SSMContacts
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SSMCONTACTS_API CreateRotationOverrideRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateRotationOverride"; }
33
34 AWS_SSMCONTACTS_API Aws::String SerializePayload() const override;
35
36 AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetRotationId() const { return m_rotationId; }
44 inline bool RotationIdHasBeenSet() const { return m_rotationIdHasBeenSet; }
45 template<typename RotationIdT = Aws::String>
46 void SetRotationId(RotationIdT&& value) { m_rotationIdHasBeenSet = true; m_rotationId = std::forward<RotationIdT>(value); }
47 template<typename RotationIdT = Aws::String>
48 CreateRotationOverrideRequest& WithRotationId(RotationIdT&& value) { SetRotationId(std::forward<RotationIdT>(value)); return *this;}
50
52
58 inline const Aws::Vector<Aws::String>& GetNewContactIds() const { return m_newContactIds; }
59 inline bool NewContactIdsHasBeenSet() const { return m_newContactIdsHasBeenSet; }
60 template<typename NewContactIdsT = Aws::Vector<Aws::String>>
61 void SetNewContactIds(NewContactIdsT&& value) { m_newContactIdsHasBeenSet = true; m_newContactIds = std::forward<NewContactIdsT>(value); }
62 template<typename NewContactIdsT = Aws::Vector<Aws::String>>
63 CreateRotationOverrideRequest& WithNewContactIds(NewContactIdsT&& value) { SetNewContactIds(std::forward<NewContactIdsT>(value)); return *this;}
64 template<typename NewContactIdsT = Aws::String>
65 CreateRotationOverrideRequest& AddNewContactIds(NewContactIdsT&& value) { m_newContactIdsHasBeenSet = true; m_newContactIds.emplace_back(std::forward<NewContactIdsT>(value)); return *this; }
67
69
72 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
73 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
74 template<typename StartTimeT = Aws::Utils::DateTime>
75 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
76 template<typename StartTimeT = Aws::Utils::DateTime>
77 CreateRotationOverrideRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
79
81
84 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
85 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
86 template<typename EndTimeT = Aws::Utils::DateTime>
87 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
88 template<typename EndTimeT = Aws::Utils::DateTime>
89 CreateRotationOverrideRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
91
93
97 inline const Aws::String& GetIdempotencyToken() const { return m_idempotencyToken; }
98 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
99 template<typename IdempotencyTokenT = Aws::String>
100 void SetIdempotencyToken(IdempotencyTokenT&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::forward<IdempotencyTokenT>(value); }
101 template<typename IdempotencyTokenT = Aws::String>
102 CreateRotationOverrideRequest& WithIdempotencyToken(IdempotencyTokenT&& value) { SetIdempotencyToken(std::forward<IdempotencyTokenT>(value)); return *this;}
104 private:
105
106 Aws::String m_rotationId;
107 bool m_rotationIdHasBeenSet = false;
108
109 Aws::Vector<Aws::String> m_newContactIds;
110 bool m_newContactIdsHasBeenSet = false;
111
112 Aws::Utils::DateTime m_startTime{};
113 bool m_startTimeHasBeenSet = false;
114
115 Aws::Utils::DateTime m_endTime{};
116 bool m_endTimeHasBeenSet = false;
117
118 Aws::String m_idempotencyToken;
119 bool m_idempotencyTokenHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace SSMContacts
124} // namespace Aws
AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateRotationOverrideRequest & WithIdempotencyToken(IdempotencyTokenT &&value)
CreateRotationOverrideRequest & WithStartTime(StartTimeT &&value)
CreateRotationOverrideRequest & WithRotationId(RotationIdT &&value)
CreateRotationOverrideRequest & WithNewContactIds(NewContactIdsT &&value)
AWS_SSMCONTACTS_API CreateRotationOverrideRequest()=default
CreateRotationOverrideRequest & AddNewContactIds(NewContactIdsT &&value)
AWS_SSMCONTACTS_API Aws::String SerializePayload() const override
CreateRotationOverrideRequest & WithEndTime(EndTimeT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector