AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRotationId(const Aws::String& value) { m_rotationIdHasBeenSet = true; m_rotationId = value; }
46 inline void SetRotationId(Aws::String&& value) { m_rotationIdHasBeenSet = true; m_rotationId = std::move(value); }
47 inline void SetRotationId(const char* value) { m_rotationIdHasBeenSet = true; m_rotationId.assign(value); }
48 inline CreateRotationOverrideRequest& WithRotationId(const Aws::String& value) { SetRotationId(value); return *this;}
49 inline CreateRotationOverrideRequest& WithRotationId(Aws::String&& value) { SetRotationId(std::move(value)); return *this;}
50 inline CreateRotationOverrideRequest& WithRotationId(const char* value) { SetRotationId(value); return *this;}
52
54
60 inline const Aws::Vector<Aws::String>& GetNewContactIds() const{ return m_newContactIds; }
61 inline bool NewContactIdsHasBeenSet() const { return m_newContactIdsHasBeenSet; }
62 inline void SetNewContactIds(const Aws::Vector<Aws::String>& value) { m_newContactIdsHasBeenSet = true; m_newContactIds = value; }
63 inline void SetNewContactIds(Aws::Vector<Aws::String>&& value) { m_newContactIdsHasBeenSet = true; m_newContactIds = std::move(value); }
66 inline CreateRotationOverrideRequest& AddNewContactIds(const Aws::String& value) { m_newContactIdsHasBeenSet = true; m_newContactIds.push_back(value); return *this; }
67 inline CreateRotationOverrideRequest& AddNewContactIds(Aws::String&& value) { m_newContactIdsHasBeenSet = true; m_newContactIds.push_back(std::move(value)); return *this; }
68 inline CreateRotationOverrideRequest& AddNewContactIds(const char* value) { m_newContactIdsHasBeenSet = true; m_newContactIds.push_back(value); return *this; }
70
72
75 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
76 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
77 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
78 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
80 inline CreateRotationOverrideRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
82
84
87 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
88 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
89 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
90 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
91 inline CreateRotationOverrideRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
92 inline CreateRotationOverrideRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
94
96
100 inline const Aws::String& GetIdempotencyToken() const{ return m_idempotencyToken; }
101 inline bool IdempotencyTokenHasBeenSet() const { return m_idempotencyTokenHasBeenSet; }
102 inline void SetIdempotencyToken(const Aws::String& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = value; }
103 inline void SetIdempotencyToken(Aws::String&& value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken = std::move(value); }
104 inline void SetIdempotencyToken(const char* value) { m_idempotencyTokenHasBeenSet = true; m_idempotencyToken.assign(value); }
106 inline CreateRotationOverrideRequest& WithIdempotencyToken(Aws::String&& value) { SetIdempotencyToken(std::move(value)); return *this;}
107 inline CreateRotationOverrideRequest& WithIdempotencyToken(const char* value) { SetIdempotencyToken(value); return *this;}
109 private:
110
111 Aws::String m_rotationId;
112 bool m_rotationIdHasBeenSet = false;
113
114 Aws::Vector<Aws::String> m_newContactIds;
115 bool m_newContactIdsHasBeenSet = false;
116
117 Aws::Utils::DateTime m_startTime;
118 bool m_startTimeHasBeenSet = false;
119
120 Aws::Utils::DateTime m_endTime;
121 bool m_endTimeHasBeenSet = false;
122
123 Aws::String m_idempotencyToken;
124 bool m_idempotencyTokenHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace SSMContacts
129} // namespace Aws
CreateRotationOverrideRequest & WithEndTime(const Aws::Utils::DateTime &value)
CreateRotationOverrideRequest & WithIdempotencyToken(const Aws::String &value)
CreateRotationOverrideRequest & WithStartTime(Aws::Utils::DateTime &&value)
CreateRotationOverrideRequest & AddNewContactIds(const Aws::String &value)
CreateRotationOverrideRequest & WithIdempotencyToken(const char *value)
CreateRotationOverrideRequest & WithEndTime(Aws::Utils::DateTime &&value)
void SetNewContactIds(const Aws::Vector< Aws::String > &value)
AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateRotationOverrideRequest & WithRotationId(const char *value)
CreateRotationOverrideRequest & WithNewContactIds(Aws::Vector< Aws::String > &&value)
CreateRotationOverrideRequest & WithRotationId(const Aws::String &value)
CreateRotationOverrideRequest & WithRotationId(Aws::String &&value)
CreateRotationOverrideRequest & WithIdempotencyToken(Aws::String &&value)
CreateRotationOverrideRequest & AddNewContactIds(const char *value)
CreateRotationOverrideRequest & AddNewContactIds(Aws::String &&value)
CreateRotationOverrideRequest & WithStartTime(const Aws::Utils::DateTime &value)
AWS_SSMCONTACTS_API Aws::String SerializePayload() const override
CreateRotationOverrideRequest & WithNewContactIds(const Aws::Vector< Aws::String > &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