AWS SDK for C++  1.9.109
AWS SDK for C++
DeleteStreamRequest.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 
25  {
26  public:
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 "DeleteStream"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetStreamName() const{ return m_streamName; }
44 
48  inline bool StreamNameHasBeenSet() const { return m_streamNameHasBeenSet; }
49 
53  inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
54 
58  inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = std::move(value); }
59 
63  inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
64 
68  inline DeleteStreamRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
69 
73  inline DeleteStreamRequest& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
74 
78  inline DeleteStreamRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;}
79 
80 
86  inline bool GetEnforceConsumerDeletion() const{ return m_enforceConsumerDeletion; }
87 
93  inline bool EnforceConsumerDeletionHasBeenSet() const { return m_enforceConsumerDeletionHasBeenSet; }
94 
100  inline void SetEnforceConsumerDeletion(bool value) { m_enforceConsumerDeletionHasBeenSet = true; m_enforceConsumerDeletion = value; }
101 
107  inline DeleteStreamRequest& WithEnforceConsumerDeletion(bool value) { SetEnforceConsumerDeletion(value); return *this;}
108 
109  private:
110 
111  Aws::String m_streamName;
112  bool m_streamNameHasBeenSet;
113 
114  bool m_enforceConsumerDeletion;
115  bool m_enforceConsumerDeletionHasBeenSet;
116  };
117 
118 } // namespace Model
119 } // namespace Kinesis
120 } // namespace Aws
Aws::Kinesis::Model::DeleteStreamRequest::WithEnforceConsumerDeletion
DeleteStreamRequest & WithEnforceConsumerDeletion(bool value)
Definition: DeleteStreamRequest.h:107
Aws::Kinesis::Model::DeleteStreamRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Kinesis::Model::DeleteStreamRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteStreamRequest.h:33
Aws::Kinesis::Model::DeleteStreamRequest::WithStreamName
DeleteStreamRequest & WithStreamName(const Aws::String &value)
Definition: DeleteStreamRequest.h:68
Aws::Kinesis::Model::DeleteStreamRequest::SetEnforceConsumerDeletion
void SetEnforceConsumerDeletion(bool value)
Definition: DeleteStreamRequest.h:100
Aws::Kinesis::Model::DeleteStreamRequest::DeleteStreamRequest
DeleteStreamRequest()
Aws::Kinesis::Model::DeleteStreamRequest::GetEnforceConsumerDeletion
bool GetEnforceConsumerDeletion() const
Definition: DeleteStreamRequest.h:86
Aws::Kinesis::Model::DeleteStreamRequest::StreamNameHasBeenSet
bool StreamNameHasBeenSet() const
Definition: DeleteStreamRequest.h:48
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
Aws::Kinesis::Model::DeleteStreamRequest::GetStreamName
const Aws::String & GetStreamName() const
Definition: DeleteStreamRequest.h:43
Aws::Kinesis::Model::DeleteStreamRequest::SerializePayload
Aws::String SerializePayload() const override
KinesisRequest.h
Aws::Kinesis::Model::DeleteStreamRequest::SetStreamName
void SetStreamName(Aws::String &&value)
Definition: DeleteStreamRequest.h:58
Aws::Kinesis::Model::DeleteStreamRequest
Definition: DeleteStreamRequest.h:25
AWSString.h
Aws::Kinesis::KinesisRequest
Definition: KinesisRequest.h:17
Aws::Kinesis::Model::DeleteStreamRequest::SetStreamName
void SetStreamName(const Aws::String &value)
Definition: DeleteStreamRequest.h:53
Aws::Kinesis::Model::DeleteStreamRequest::EnforceConsumerDeletionHasBeenSet
bool EnforceConsumerDeletionHasBeenSet() const
Definition: DeleteStreamRequest.h:93
Kinesis_EXPORTS.h
Aws::Kinesis::Model::DeleteStreamRequest::WithStreamName
DeleteStreamRequest & WithStreamName(const char *value)
Definition: DeleteStreamRequest.h:78
Aws::Kinesis::Model::DeleteStreamRequest::WithStreamName
DeleteStreamRequest & WithStreamName(Aws::String &&value)
Definition: DeleteStreamRequest.h:73
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::DeleteStreamRequest::SetStreamName
void SetStreamName(const char *value)
Definition: DeleteStreamRequest.h:63