AWS SDK for C++  1.8.129
AWS SDK for C++
PutLifecycleConfigurationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EFS
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "PutLifecycleConfiguration"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
41  inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; }
42 
47  inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
48 
53  inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; }
54 
59  inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); }
60 
65  inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); }
66 
71  inline PutLifecycleConfigurationRequest& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;}
72 
77  inline PutLifecycleConfigurationRequest& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;}
78 
83  inline PutLifecycleConfigurationRequest& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;}
84 
85 
93  inline const Aws::Vector<LifecyclePolicy>& GetLifecyclePolicies() const{ return m_lifecyclePolicies; }
94 
102  inline bool LifecyclePoliciesHasBeenSet() const { return m_lifecyclePoliciesHasBeenSet; }
103 
111  inline void SetLifecyclePolicies(const Aws::Vector<LifecyclePolicy>& value) { m_lifecyclePoliciesHasBeenSet = true; m_lifecyclePolicies = value; }
112 
120  inline void SetLifecyclePolicies(Aws::Vector<LifecyclePolicy>&& value) { m_lifecyclePoliciesHasBeenSet = true; m_lifecyclePolicies = std::move(value); }
121 
129  inline PutLifecycleConfigurationRequest& WithLifecyclePolicies(const Aws::Vector<LifecyclePolicy>& value) { SetLifecyclePolicies(value); return *this;}
130 
138  inline PutLifecycleConfigurationRequest& WithLifecyclePolicies(Aws::Vector<LifecyclePolicy>&& value) { SetLifecyclePolicies(std::move(value)); return *this;}
139 
147  inline PutLifecycleConfigurationRequest& AddLifecyclePolicies(const LifecyclePolicy& value) { m_lifecyclePoliciesHasBeenSet = true; m_lifecyclePolicies.push_back(value); return *this; }
148 
156  inline PutLifecycleConfigurationRequest& AddLifecyclePolicies(LifecyclePolicy&& value) { m_lifecyclePoliciesHasBeenSet = true; m_lifecyclePolicies.push_back(std::move(value)); return *this; }
157 
158  private:
159 
160  Aws::String m_fileSystemId;
161  bool m_fileSystemIdHasBeenSet;
162 
163  Aws::Vector<LifecyclePolicy> m_lifecyclePolicies;
164  bool m_lifecyclePoliciesHasBeenSet;
165  };
166 
167 } // namespace Model
168 } // namespace EFS
169 } // namespace Aws
EFS_EXPORTS.h
Aws::EFS::Model::PutLifecycleConfigurationRequest::AddLifecyclePolicies
PutLifecycleConfigurationRequest & AddLifecyclePolicies(LifecyclePolicy &&value)
Definition: PutLifecycleConfigurationRequest.h:156
Aws::EFS::Model::PutLifecycleConfigurationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutLifecycleConfigurationRequest.h:32
Aws::EFS::Model::PutLifecycleConfigurationRequest
Definition: PutLifecycleConfigurationRequest.h:24
Aws::EFS::Model::PutLifecycleConfigurationRequest::SetFileSystemId
void SetFileSystemId(const char *value)
Definition: PutLifecycleConfigurationRequest.h:65
EFSRequest.h
Aws::EFS::Model::PutLifecycleConfigurationRequest::WithFileSystemId
PutLifecycleConfigurationRequest & WithFileSystemId(Aws::String &&value)
Definition: PutLifecycleConfigurationRequest.h:77
AWS_EFS_API
#define AWS_EFS_API
Definition: EFS_EXPORTS.h:28
Aws::EFS::Model::PutLifecycleConfigurationRequest::GetLifecyclePolicies
const Aws::Vector< LifecyclePolicy > & GetLifecyclePolicies() const
Definition: PutLifecycleConfigurationRequest.h:93
Aws::Transfer::Model::Domain::NOT_SET
@ NOT_SET
Aws::EFS::Model::PutLifecycleConfigurationRequest::SetFileSystemId
void SetFileSystemId(const Aws::String &value)
Definition: PutLifecycleConfigurationRequest.h:53
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EFS::Model::PutLifecycleConfigurationRequest::FileSystemIdHasBeenSet
bool FileSystemIdHasBeenSet() const
Definition: PutLifecycleConfigurationRequest.h:47
AWSVector.h
LifecyclePolicy.h
Aws::EFS::Model::LifecyclePolicy
Definition: LifecyclePolicy.h:33
Aws::EFS::Model::PutLifecycleConfigurationRequest::AddLifecyclePolicies
PutLifecycleConfigurationRequest & AddLifecyclePolicies(const LifecyclePolicy &value)
Definition: PutLifecycleConfigurationRequest.h:147
Aws::EFS::Model::PutLifecycleConfigurationRequest::PutLifecycleConfigurationRequest
PutLifecycleConfigurationRequest()
Aws::EFS::Model::PutLifecycleConfigurationRequest::WithFileSystemId
PutLifecycleConfigurationRequest & WithFileSystemId(const char *value)
Definition: PutLifecycleConfigurationRequest.h:83
Aws::EFS::Model::PutLifecycleConfigurationRequest::WithFileSystemId
PutLifecycleConfigurationRequest & WithFileSystemId(const Aws::String &value)
Definition: PutLifecycleConfigurationRequest.h:71
AWSString.h
Aws::EFS::Model::PutLifecycleConfigurationRequest::SetLifecyclePolicies
void SetLifecyclePolicies(const Aws::Vector< LifecyclePolicy > &value)
Definition: PutLifecycleConfigurationRequest.h:111
Aws::EFS::Model::PutLifecycleConfigurationRequest::SetFileSystemId
void SetFileSystemId(Aws::String &&value)
Definition: PutLifecycleConfigurationRequest.h:59
Aws::EFS::EFSRequest
Definition: EFSRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::EFS::Model::PutLifecycleConfigurationRequest::GetFileSystemId
const Aws::String & GetFileSystemId() const
Definition: PutLifecycleConfigurationRequest.h:41
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EFS::Model::PutLifecycleConfigurationRequest::WithLifecyclePolicies
PutLifecycleConfigurationRequest & WithLifecyclePolicies(const Aws::Vector< LifecyclePolicy > &value)
Definition: PutLifecycleConfigurationRequest.h:129
Aws::EFS::Model::PutLifecycleConfigurationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EFS::Model::PutLifecycleConfigurationRequest::SetLifecyclePolicies
void SetLifecyclePolicies(Aws::Vector< LifecyclePolicy > &&value)
Definition: PutLifecycleConfigurationRequest.h:120
Aws::EFS::Model::PutLifecycleConfigurationRequest::WithLifecyclePolicies
PutLifecycleConfigurationRequest & WithLifecyclePolicies(Aws::Vector< LifecyclePolicy > &&value)
Definition: PutLifecycleConfigurationRequest.h:138
Aws::EFS::Model::PutLifecycleConfigurationRequest::LifecyclePoliciesHasBeenSet
bool LifecyclePoliciesHasBeenSet() const
Definition: PutLifecycleConfigurationRequest.h:102