AWS SDK for C++  1.9.66
AWS SDK for C++
PutLifecyclePolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace MediaStore
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "PutLifecyclePolicy"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetContainerName() const{ return m_containerName; }
42 
47  inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
48 
53  inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; }
54 
59  inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); }
60 
65  inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); }
66 
71  inline PutLifecyclePolicyRequest& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;}
72 
77  inline PutLifecyclePolicyRequest& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;}
78 
83  inline PutLifecyclePolicyRequest& WithContainerName(const char* value) { SetContainerName(value); return *this;}
84 
85 
89  inline const Aws::String& GetLifecyclePolicy() const{ return m_lifecyclePolicy; }
90 
94  inline bool LifecyclePolicyHasBeenSet() const { return m_lifecyclePolicyHasBeenSet; }
95 
99  inline void SetLifecyclePolicy(const Aws::String& value) { m_lifecyclePolicyHasBeenSet = true; m_lifecyclePolicy = value; }
100 
104  inline void SetLifecyclePolicy(Aws::String&& value) { m_lifecyclePolicyHasBeenSet = true; m_lifecyclePolicy = std::move(value); }
105 
109  inline void SetLifecyclePolicy(const char* value) { m_lifecyclePolicyHasBeenSet = true; m_lifecyclePolicy.assign(value); }
110 
114  inline PutLifecyclePolicyRequest& WithLifecyclePolicy(const Aws::String& value) { SetLifecyclePolicy(value); return *this;}
115 
119  inline PutLifecyclePolicyRequest& WithLifecyclePolicy(Aws::String&& value) { SetLifecyclePolicy(std::move(value)); return *this;}
120 
124  inline PutLifecyclePolicyRequest& WithLifecyclePolicy(const char* value) { SetLifecyclePolicy(value); return *this;}
125 
126  private:
127 
128  Aws::String m_containerName;
129  bool m_containerNameHasBeenSet;
130 
131  Aws::String m_lifecyclePolicy;
132  bool m_lifecyclePolicyHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace MediaStore
137 } // namespace Aws
Aws::MediaStore::Model::PutLifecyclePolicyRequest::SetContainerName
void SetContainerName(Aws::String &&value)
Definition: PutLifecyclePolicyRequest.h:59
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
MediaStoreRequest.h
MediaStore_EXPORTS.h
Aws::MediaStore::Model::PutLifecyclePolicyRequest::SetContainerName
void SetContainerName(const char *value)
Definition: PutLifecyclePolicyRequest.h:65
Aws::MediaStore::Model::PutLifecyclePolicyRequest::WithLifecyclePolicy
PutLifecyclePolicyRequest & WithLifecyclePolicy(const Aws::String &value)
Definition: PutLifecyclePolicyRequest.h:114
Aws::MediaStore::Model::PutLifecyclePolicyRequest::SetContainerName
void SetContainerName(const Aws::String &value)
Definition: PutLifecyclePolicyRequest.h:53
Aws::MediaStore::Model::PutLifecyclePolicyRequest::WithLifecyclePolicy
PutLifecyclePolicyRequest & WithLifecyclePolicy(Aws::String &&value)
Definition: PutLifecyclePolicyRequest.h:119
Aws::MediaStore::Model::PutLifecyclePolicyRequest::SetLifecyclePolicy
void SetLifecyclePolicy(Aws::String &&value)
Definition: PutLifecyclePolicyRequest.h:104
Aws::MediaStore::MediaStoreRequest
Definition: MediaStoreRequest.h:17
Aws::MediaStore::Model::PutLifecyclePolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutLifecyclePolicyRequest.h:30
Aws::MediaStore::Model::PutLifecyclePolicyRequest
Definition: PutLifecyclePolicyRequest.h:22
Aws::MediaStore::Model::PutLifecyclePolicyRequest::LifecyclePolicyHasBeenSet
bool LifecyclePolicyHasBeenSet() const
Definition: PutLifecyclePolicyRequest.h:94
AWS_MEDIASTORE_API
#define AWS_MEDIASTORE_API
Definition: MediaStore_EXPORTS.h:28
Aws::MediaStore::Model::PutLifecyclePolicyRequest::GetLifecyclePolicy
const Aws::String & GetLifecyclePolicy() const
Definition: PutLifecyclePolicyRequest.h:89
Aws::MediaStore::Model::PutLifecyclePolicyRequest::SetLifecyclePolicy
void SetLifecyclePolicy(const char *value)
Definition: PutLifecyclePolicyRequest.h:109
Aws::MediaStore::Model::PutLifecyclePolicyRequest::GetContainerName
const Aws::String & GetContainerName() const
Definition: PutLifecyclePolicyRequest.h:41
AWSString.h
Aws::MediaStore::Model::PutLifecyclePolicyRequest::WithContainerName
PutLifecyclePolicyRequest & WithContainerName(const char *value)
Definition: PutLifecyclePolicyRequest.h:83
Aws::MediaStore::Model::PutLifecyclePolicyRequest::SetLifecyclePolicy
void SetLifecyclePolicy(const Aws::String &value)
Definition: PutLifecyclePolicyRequest.h:99
Aws::MediaStore::Model::PutLifecyclePolicyRequest::PutLifecyclePolicyRequest
PutLifecyclePolicyRequest()
Aws::MediaStore::Model::PutLifecyclePolicyRequest::WithContainerName
PutLifecyclePolicyRequest & WithContainerName(Aws::String &&value)
Definition: PutLifecyclePolicyRequest.h:77
Aws
Definition: AccessManagementClient.h:15
Aws::MediaStore::Model::PutLifecyclePolicyRequest::ContainerNameHasBeenSet
bool ContainerNameHasBeenSet() const
Definition: PutLifecyclePolicyRequest.h:47
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::MediaStore::Model::PutLifecyclePolicyRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::MediaStore::Model::PutLifecyclePolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::MediaStore::Model::PutLifecyclePolicyRequest::WithContainerName
PutLifecyclePolicyRequest & WithContainerName(const Aws::String &value)
Definition: PutLifecyclePolicyRequest.h:71
Aws::MediaStore::Model::PutLifecyclePolicyRequest::WithLifecyclePolicy
PutLifecyclePolicyRequest & WithLifecyclePolicy(const char *value)
Definition: PutLifecyclePolicyRequest.h:124