AWS SDK for C++  1.9.104
AWS SDK for C++
ModifySnapshotScheduleRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Redshift
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 "ModifySnapshotSchedule"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const Aws::String& GetScheduleIdentifier() const{ return m_scheduleIdentifier; }
44 
48  inline bool ScheduleIdentifierHasBeenSet() const { return m_scheduleIdentifierHasBeenSet; }
49 
53  inline void SetScheduleIdentifier(const Aws::String& value) { m_scheduleIdentifierHasBeenSet = true; m_scheduleIdentifier = value; }
54 
58  inline void SetScheduleIdentifier(Aws::String&& value) { m_scheduleIdentifierHasBeenSet = true; m_scheduleIdentifier = std::move(value); }
59 
63  inline void SetScheduleIdentifier(const char* value) { m_scheduleIdentifierHasBeenSet = true; m_scheduleIdentifier.assign(value); }
64 
68  inline ModifySnapshotScheduleRequest& WithScheduleIdentifier(const Aws::String& value) { SetScheduleIdentifier(value); return *this;}
69 
73  inline ModifySnapshotScheduleRequest& WithScheduleIdentifier(Aws::String&& value) { SetScheduleIdentifier(std::move(value)); return *this;}
74 
78  inline ModifySnapshotScheduleRequest& WithScheduleIdentifier(const char* value) { SetScheduleIdentifier(value); return *this;}
79 
80 
85  inline const Aws::Vector<Aws::String>& GetScheduleDefinitions() const{ return m_scheduleDefinitions; }
86 
91  inline bool ScheduleDefinitionsHasBeenSet() const { return m_scheduleDefinitionsHasBeenSet; }
92 
97  inline void SetScheduleDefinitions(const Aws::Vector<Aws::String>& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions = value; }
98 
103  inline void SetScheduleDefinitions(Aws::Vector<Aws::String>&& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions = std::move(value); }
104 
109  inline ModifySnapshotScheduleRequest& WithScheduleDefinitions(const Aws::Vector<Aws::String>& value) { SetScheduleDefinitions(value); return *this;}
110 
115  inline ModifySnapshotScheduleRequest& WithScheduleDefinitions(Aws::Vector<Aws::String>&& value) { SetScheduleDefinitions(std::move(value)); return *this;}
116 
121  inline ModifySnapshotScheduleRequest& AddScheduleDefinitions(const Aws::String& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions.push_back(value); return *this; }
122 
127  inline ModifySnapshotScheduleRequest& AddScheduleDefinitions(Aws::String&& value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions.push_back(std::move(value)); return *this; }
128 
133  inline ModifySnapshotScheduleRequest& AddScheduleDefinitions(const char* value) { m_scheduleDefinitionsHasBeenSet = true; m_scheduleDefinitions.push_back(value); return *this; }
134 
135  private:
136 
137  Aws::String m_scheduleIdentifier;
138  bool m_scheduleIdentifierHasBeenSet;
139 
140  Aws::Vector<Aws::String> m_scheduleDefinitions;
141  bool m_scheduleDefinitionsHasBeenSet;
142  };
143 
144 } // namespace Model
145 } // namespace Redshift
146 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::Redshift::Model::ModifySnapshotScheduleRequest::ModifySnapshotScheduleRequest
ModifySnapshotScheduleRequest()
Aws::Redshift::Model::ModifySnapshotScheduleRequest::ScheduleDefinitionsHasBeenSet
bool ScheduleDefinitionsHasBeenSet() const
Definition: ModifySnapshotScheduleRequest.h:91
Aws::Redshift::Model::ModifySnapshotScheduleRequest::WithScheduleIdentifier
ModifySnapshotScheduleRequest & WithScheduleIdentifier(const Aws::String &value)
Definition: ModifySnapshotScheduleRequest.h:68
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Redshift::Model::ModifySnapshotScheduleRequest::WithScheduleDefinitions
ModifySnapshotScheduleRequest & WithScheduleDefinitions(Aws::Vector< Aws::String > &&value)
Definition: ModifySnapshotScheduleRequest.h:115
RedshiftRequest.h
Aws::Redshift::Model::ModifySnapshotScheduleRequest::AddScheduleDefinitions
ModifySnapshotScheduleRequest & AddScheduleDefinitions(Aws::String &&value)
Definition: ModifySnapshotScheduleRequest.h:127
AWSVector.h
Aws::Redshift::Model::ModifySnapshotScheduleRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Redshift::Model::ModifySnapshotScheduleRequest::SetScheduleIdentifier
void SetScheduleIdentifier(const char *value)
Definition: ModifySnapshotScheduleRequest.h:63
Aws::Redshift::Model::ModifySnapshotScheduleRequest::WithScheduleDefinitions
ModifySnapshotScheduleRequest & WithScheduleDefinitions(const Aws::Vector< Aws::String > &value)
Definition: ModifySnapshotScheduleRequest.h:109
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::ModifySnapshotScheduleRequest::AddScheduleDefinitions
ModifySnapshotScheduleRequest & AddScheduleDefinitions(const Aws::String &value)
Definition: ModifySnapshotScheduleRequest.h:121
Aws::Redshift::Model::ModifySnapshotScheduleRequest::GetScheduleDefinitions
const Aws::Vector< Aws::String > & GetScheduleDefinitions() const
Definition: ModifySnapshotScheduleRequest.h:85
Aws::Redshift::Model::ModifySnapshotScheduleRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Redshift::RedshiftRequest
Definition: RedshiftRequest.h:17
Aws::Redshift::Model::ModifySnapshotScheduleRequest::SetScheduleDefinitions
void SetScheduleDefinitions(Aws::Vector< Aws::String > &&value)
Definition: ModifySnapshotScheduleRequest.h:103
AWSString.h
Aws::Redshift::Model::ModifySnapshotScheduleRequest::SetScheduleDefinitions
void SetScheduleDefinitions(const Aws::Vector< Aws::String > &value)
Definition: ModifySnapshotScheduleRequest.h:97
Aws::Redshift::Model::ModifySnapshotScheduleRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifySnapshotScheduleRequest.h:31
Aws::Redshift::Model::ModifySnapshotScheduleRequest
Definition: ModifySnapshotScheduleRequest.h:23
Aws::Redshift::Model::ModifySnapshotScheduleRequest::WithScheduleIdentifier
ModifySnapshotScheduleRequest & WithScheduleIdentifier(Aws::String &&value)
Definition: ModifySnapshotScheduleRequest.h:73
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::ModifySnapshotScheduleRequest::SetScheduleIdentifier
void SetScheduleIdentifier(const Aws::String &value)
Definition: ModifySnapshotScheduleRequest.h:53
Aws::Redshift::Model::ModifySnapshotScheduleRequest::AddScheduleDefinitions
ModifySnapshotScheduleRequest & AddScheduleDefinitions(const char *value)
Definition: ModifySnapshotScheduleRequest.h:133
Aws::Redshift::Model::ModifySnapshotScheduleRequest::WithScheduleIdentifier
ModifySnapshotScheduleRequest & WithScheduleIdentifier(const char *value)
Definition: ModifySnapshotScheduleRequest.h:78
Aws::Redshift::Model::ModifySnapshotScheduleRequest::SetScheduleIdentifier
void SetScheduleIdentifier(Aws::String &&value)
Definition: ModifySnapshotScheduleRequest.h:58
Aws::Redshift::Model::ModifySnapshotScheduleRequest::GetScheduleIdentifier
const Aws::String & GetScheduleIdentifier() const
Definition: ModifySnapshotScheduleRequest.h:43
Aws::Redshift::Model::ModifySnapshotScheduleRequest::ScheduleIdentifierHasBeenSet
bool ScheduleIdentifierHasBeenSet() const
Definition: ModifySnapshotScheduleRequest.h:48