AWS SDK for C++  1.9.104
AWS SDK for C++
IncreaseStreamRetentionPeriodRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Kinesis
15 {
16 namespace Model
17 {
18 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "IncreaseStreamRetentionPeriod"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
44  inline const Aws::String& GetStreamName() const{ return m_streamName; }
45 
49  inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
50 
54  inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
55 
59  inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
60 
64  inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
65 
69  inline IncreaseStreamRetentionPeriodRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
70 
74  inline IncreaseStreamRetentionPeriodRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
75 
79  inline IncreaseStreamRetentionPeriodRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;}
80 
81 
86  inline int GetRetentionPeriodHours() const{ return m_retentionPeriodHours; }
87 
92  inline bool RetentionPeriodHoursHasBeenSet() const { return m_retentionPeriodHoursHasBeenSet; }
93 
98  inline void SetRetentionPeriodHours(int value) { m_retentionPeriodHoursHasBeenSet = true; m_retentionPeriodHours = value; }
99 
104  inline IncreaseStreamRetentionPeriodRequest& WithRetentionPeriodHours(int value) { SetRetentionPeriodHours(value); return *this;}
105 
106  private:
107 
108  Aws::String m_streamName;
109  bool m_streamNameHasBeenSet;
110 
111  int m_retentionPeriodHours;
112  bool m_retentionPeriodHoursHasBeenSet;
113  };
114 
115 } // namespace Model
116 } // namespace Kinesis
117 } // namespace Aws
Aws::Kinesis::Model::IncreaseStreamRetentionPeriodRequest::GetStreamName
const Aws::String & GetStreamName() const
Definition: IncreaseStreamRetentionPeriodRequest.h:44
Aws::Kinesis::Model::IncreaseStreamRetentionPeriodRequest::IncreaseStreamRetentionPeriodRequest
IncreaseStreamRetentionPeriodRequest()
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Kinesis::Model::IncreaseStreamRetentionPeriodRequest::WithStreamName
IncreaseStreamRetentionPeriodRequest & WithStreamName(const char *value)
Definition: IncreaseStreamRetentionPeriodRequest.h:79
Aws::Kinesis::Model::IncreaseStreamRetentionPeriodRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Kinesis::Model::IncreaseStreamRetentionPeriodRequest
Definition: IncreaseStreamRetentionPeriodRequest.h:26
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
KinesisRequest.h
Aws::Kinesis::Model::IncreaseStreamRetentionPeriodRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: IncreaseStreamRetentionPeriodRequest.h:34
Aws::Kinesis::Model::IncreaseStreamRetentionPeriodRequest::WithStreamName
IncreaseStreamRetentionPeriodRequest & WithStreamName(Aws::String &&value)
Definition: IncreaseStreamRetentionPeriodRequest.h:74
Aws::Kinesis::Model::IncreaseStreamRetentionPeriodRequest::WithRetentionPeriodHours
IncreaseStreamRetentionPeriodRequest & WithRetentionPeriodHours(int value)
Definition: IncreaseStreamRetentionPeriodRequest.h:104
Aws::Kinesis::Model::IncreaseStreamRetentionPeriodRequest::SetStreamName
void SetStreamName(Aws::String &&value)
Definition: IncreaseStreamRetentionPeriodRequest.h:59
AWSString.h
Aws::Kinesis::KinesisRequest
Definition: KinesisRequest.h:17
Aws::Kinesis::Model::IncreaseStreamRetentionPeriodRequest::StreamNameHasBeenSet
bool StreamNameHasBeenSet() const
Definition: IncreaseStreamRetentionPeriodRequest.h:49
Kinesis_EXPORTS.h
Aws::Kinesis::Model::IncreaseStreamRetentionPeriodRequest::SetStreamName
void SetStreamName(const Aws::String &value)
Definition: IncreaseStreamRetentionPeriodRequest.h:54
Aws
Definition: AccessManagementClient.h:15
Aws::Kinesis::Model::IncreaseStreamRetentionPeriodRequest::RetentionPeriodHoursHasBeenSet
bool RetentionPeriodHoursHasBeenSet() const
Definition: IncreaseStreamRetentionPeriodRequest.h:92
Aws::Kinesis::Model::IncreaseStreamRetentionPeriodRequest::SetStreamName
void SetStreamName(const char *value)
Definition: IncreaseStreamRetentionPeriodRequest.h:64
Aws::Kinesis::Model::IncreaseStreamRetentionPeriodRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::IncreaseStreamRetentionPeriodRequest::WithStreamName
IncreaseStreamRetentionPeriodRequest & WithStreamName(const Aws::String &value)
Definition: IncreaseStreamRetentionPeriodRequest.h:69
Aws::Kinesis::Model::IncreaseStreamRetentionPeriodRequest::SetRetentionPeriodHours
void SetRetentionPeriodHours(int value)
Definition: IncreaseStreamRetentionPeriodRequest.h:98
Aws::Kinesis::Model::IncreaseStreamRetentionPeriodRequest::GetRetentionPeriodHours
int GetRetentionPeriodHours() const
Definition: IncreaseStreamRetentionPeriodRequest.h:86