AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateDataRetentionRequest.h
1
6#pragma once
7#include <aws/kinesisvideo/KinesisVideo_EXPORTS.h>
8#include <aws/kinesisvideo/KinesisVideoRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kinesisvideo/model/UpdateDataRetentionOperation.h>
11#include <utility>
12
13namespace Aws
14{
15namespace KinesisVideo
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_KINESISVIDEO_API UpdateDataRetentionRequest();
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 "UpdateDataRetention"; }
32
33 AWS_KINESISVIDEO_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetStreamName() const{ return m_streamName; }
41 inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
42 inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
43 inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
44 inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
45 inline UpdateDataRetentionRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
46 inline UpdateDataRetentionRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
47 inline UpdateDataRetentionRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;}
49
51
55 inline const Aws::String& GetStreamARN() const{ return m_streamARN; }
56 inline bool StreamARNHasBeenSet() const { return m_streamARNHasBeenSet; }
57 inline void SetStreamARN(const Aws::String& value) { m_streamARNHasBeenSet = true; m_streamARN = value; }
58 inline void SetStreamARN(Aws::String&& value) { m_streamARNHasBeenSet = true; m_streamARN = std::move(value); }
59 inline void SetStreamARN(const char* value) { m_streamARNHasBeenSet = true; m_streamARN.assign(value); }
60 inline UpdateDataRetentionRequest& WithStreamARN(const Aws::String& value) { SetStreamARN(value); return *this;}
61 inline UpdateDataRetentionRequest& WithStreamARN(Aws::String&& value) { SetStreamARN(std::move(value)); return *this;}
62 inline UpdateDataRetentionRequest& WithStreamARN(const char* value) { SetStreamARN(value); return *this;}
64
66
71 inline const Aws::String& GetCurrentVersion() const{ return m_currentVersion; }
72 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
73 inline void SetCurrentVersion(const Aws::String& value) { m_currentVersionHasBeenSet = true; m_currentVersion = value; }
74 inline void SetCurrentVersion(Aws::String&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::move(value); }
75 inline void SetCurrentVersion(const char* value) { m_currentVersionHasBeenSet = true; m_currentVersion.assign(value); }
76 inline UpdateDataRetentionRequest& WithCurrentVersion(const Aws::String& value) { SetCurrentVersion(value); return *this;}
77 inline UpdateDataRetentionRequest& WithCurrentVersion(Aws::String&& value) { SetCurrentVersion(std::move(value)); return *this;}
78 inline UpdateDataRetentionRequest& WithCurrentVersion(const char* value) { SetCurrentVersion(value); return *this;}
80
82
85 inline const UpdateDataRetentionOperation& GetOperation() const{ return m_operation; }
86 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
87 inline void SetOperation(const UpdateDataRetentionOperation& value) { m_operationHasBeenSet = true; m_operation = value; }
88 inline void SetOperation(UpdateDataRetentionOperation&& value) { m_operationHasBeenSet = true; m_operation = std::move(value); }
90 inline UpdateDataRetentionRequest& WithOperation(UpdateDataRetentionOperation&& value) { SetOperation(std::move(value)); return *this;}
92
94
100 inline int GetDataRetentionChangeInHours() const{ return m_dataRetentionChangeInHours; }
101 inline bool DataRetentionChangeInHoursHasBeenSet() const { return m_dataRetentionChangeInHoursHasBeenSet; }
102 inline void SetDataRetentionChangeInHours(int value) { m_dataRetentionChangeInHoursHasBeenSet = true; m_dataRetentionChangeInHours = value; }
105 private:
106
107 Aws::String m_streamName;
108 bool m_streamNameHasBeenSet = false;
109
110 Aws::String m_streamARN;
111 bool m_streamARNHasBeenSet = false;
112
113 Aws::String m_currentVersion;
114 bool m_currentVersionHasBeenSet = false;
115
117 bool m_operationHasBeenSet = false;
118
119 int m_dataRetentionChangeInHours;
120 bool m_dataRetentionChangeInHoursHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace KinesisVideo
125} // namespace Aws
UpdateDataRetentionRequest & WithDataRetentionChangeInHours(int value)
UpdateDataRetentionRequest & WithCurrentVersion(Aws::String &&value)
void SetOperation(const UpdateDataRetentionOperation &value)
const UpdateDataRetentionOperation & GetOperation() const
UpdateDataRetentionRequest & WithOperation(UpdateDataRetentionOperation &&value)
void SetOperation(UpdateDataRetentionOperation &&value)
UpdateDataRetentionRequest & WithStreamARN(Aws::String &&value)
UpdateDataRetentionRequest & WithCurrentVersion(const char *value)
UpdateDataRetentionRequest & WithStreamName(Aws::String &&value)
UpdateDataRetentionRequest & WithStreamName(const char *value)
UpdateDataRetentionRequest & WithCurrentVersion(const Aws::String &value)
AWS_KINESISVIDEO_API Aws::String SerializePayload() const override
UpdateDataRetentionRequest & WithStreamARN(const Aws::String &value)
UpdateDataRetentionRequest & WithOperation(const UpdateDataRetentionOperation &value)
UpdateDataRetentionRequest & WithStreamName(const Aws::String &value)
UpdateDataRetentionRequest & WithStreamARN(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String