AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateDbClusterRequest.h
1
6#pragma once
7#include <aws/timestream-influxdb/TimestreamInfluxDB_EXPORTS.h>
8#include <aws/timestream-influxdb/TimestreamInfluxDBRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/timestream-influxdb/model/LogDeliveryConfiguration.h>
11#include <aws/timestream-influxdb/model/DbInstanceType.h>
12#include <aws/timestream-influxdb/model/FailoverMode.h>
13#include <utility>
14
15namespace Aws
16{
17namespace TimestreamInfluxDB
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_TIMESTREAMINFLUXDB_API UpdateDbClusterRequest() = 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 "UpdateDbCluster"; }
34
35 AWS_TIMESTREAMINFLUXDB_API Aws::String SerializePayload() const override;
36
37 AWS_TIMESTREAMINFLUXDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetDbClusterId() const { return m_dbClusterId; }
45 inline bool DbClusterIdHasBeenSet() const { return m_dbClusterIdHasBeenSet; }
46 template<typename DbClusterIdT = Aws::String>
47 void SetDbClusterId(DbClusterIdT&& value) { m_dbClusterIdHasBeenSet = true; m_dbClusterId = std::forward<DbClusterIdT>(value); }
48 template<typename DbClusterIdT = Aws::String>
49 UpdateDbClusterRequest& WithDbClusterId(DbClusterIdT&& value) { SetDbClusterId(std::forward<DbClusterIdT>(value)); return *this;}
51
53
56 inline const LogDeliveryConfiguration& GetLogDeliveryConfiguration() const { return m_logDeliveryConfiguration; }
57 inline bool LogDeliveryConfigurationHasBeenSet() const { return m_logDeliveryConfigurationHasBeenSet; }
58 template<typename LogDeliveryConfigurationT = LogDeliveryConfiguration>
59 void SetLogDeliveryConfiguration(LogDeliveryConfigurationT&& value) { m_logDeliveryConfigurationHasBeenSet = true; m_logDeliveryConfiguration = std::forward<LogDeliveryConfigurationT>(value); }
60 template<typename LogDeliveryConfigurationT = LogDeliveryConfiguration>
61 UpdateDbClusterRequest& WithLogDeliveryConfiguration(LogDeliveryConfigurationT&& value) { SetLogDeliveryConfiguration(std::forward<LogDeliveryConfigurationT>(value)); return *this;}
63
65
68 inline const Aws::String& GetDbParameterGroupIdentifier() const { return m_dbParameterGroupIdentifier; }
69 inline bool DbParameterGroupIdentifierHasBeenSet() const { return m_dbParameterGroupIdentifierHasBeenSet; }
70 template<typename DbParameterGroupIdentifierT = Aws::String>
71 void SetDbParameterGroupIdentifier(DbParameterGroupIdentifierT&& value) { m_dbParameterGroupIdentifierHasBeenSet = true; m_dbParameterGroupIdentifier = std::forward<DbParameterGroupIdentifierT>(value); }
72 template<typename DbParameterGroupIdentifierT = Aws::String>
73 UpdateDbClusterRequest& WithDbParameterGroupIdentifier(DbParameterGroupIdentifierT&& value) { SetDbParameterGroupIdentifier(std::forward<DbParameterGroupIdentifierT>(value)); return *this;}
75
77
80 inline int GetPort() const { return m_port; }
81 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
82 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
83 inline UpdateDbClusterRequest& WithPort(int value) { SetPort(value); return *this;}
85
87
90 inline DbInstanceType GetDbInstanceType() const { return m_dbInstanceType; }
91 inline bool DbInstanceTypeHasBeenSet() const { return m_dbInstanceTypeHasBeenSet; }
92 inline void SetDbInstanceType(DbInstanceType value) { m_dbInstanceTypeHasBeenSet = true; m_dbInstanceType = value; }
95
97
100 inline FailoverMode GetFailoverMode() const { return m_failoverMode; }
101 inline bool FailoverModeHasBeenSet() const { return m_failoverModeHasBeenSet; }
102 inline void SetFailoverMode(FailoverMode value) { m_failoverModeHasBeenSet = true; m_failoverMode = value; }
105 private:
106
107 Aws::String m_dbClusterId;
108 bool m_dbClusterIdHasBeenSet = false;
109
110 LogDeliveryConfiguration m_logDeliveryConfiguration;
111 bool m_logDeliveryConfigurationHasBeenSet = false;
112
113 Aws::String m_dbParameterGroupIdentifier;
114 bool m_dbParameterGroupIdentifierHasBeenSet = false;
115
116 int m_port{0};
117 bool m_portHasBeenSet = false;
118
119 DbInstanceType m_dbInstanceType{DbInstanceType::NOT_SET};
120 bool m_dbInstanceTypeHasBeenSet = false;
121
122 FailoverMode m_failoverMode{FailoverMode::NOT_SET};
123 bool m_failoverModeHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace TimestreamInfluxDB
128} // namespace Aws
void SetDbParameterGroupIdentifier(DbParameterGroupIdentifierT &&value)
UpdateDbClusterRequest & WithLogDeliveryConfiguration(LogDeliveryConfigurationT &&value)
UpdateDbClusterRequest & WithDbClusterId(DbClusterIdT &&value)
void SetLogDeliveryConfiguration(LogDeliveryConfigurationT &&value)
AWS_TIMESTREAMINFLUXDB_API UpdateDbClusterRequest()=default
const LogDeliveryConfiguration & GetLogDeliveryConfiguration() const
UpdateDbClusterRequest & WithFailoverMode(FailoverMode value)
UpdateDbClusterRequest & WithDbInstanceType(DbInstanceType value)
AWS_TIMESTREAMINFLUXDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateDbClusterRequest & WithDbParameterGroupIdentifier(DbParameterGroupIdentifierT &&value)
AWS_TIMESTREAMINFLUXDB_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String