AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutLifecycleConfigurationRequest.h
1
6#pragma once
7#include <aws/elasticfilesystem/EFS_EXPORTS.h>
8#include <aws/elasticfilesystem/EFSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/elasticfilesystem/model/LifecyclePolicy.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EFS
17{
18namespace 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_EFS_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; }
43 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
44 inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; }
45 inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); }
46 inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); }
48 inline PutLifecycleConfigurationRequest& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;}
49 inline PutLifecycleConfigurationRequest& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;}
51
53
78 inline const Aws::Vector<LifecyclePolicy>& GetLifecyclePolicies() const{ return m_lifecyclePolicies; }
79 inline bool LifecyclePoliciesHasBeenSet() const { return m_lifecyclePoliciesHasBeenSet; }
80 inline void SetLifecyclePolicies(const Aws::Vector<LifecyclePolicy>& value) { m_lifecyclePoliciesHasBeenSet = true; m_lifecyclePolicies = value; }
81 inline void SetLifecyclePolicies(Aws::Vector<LifecyclePolicy>&& value) { m_lifecyclePoliciesHasBeenSet = true; m_lifecyclePolicies = std::move(value); }
84 inline PutLifecycleConfigurationRequest& AddLifecyclePolicies(const LifecyclePolicy& value) { m_lifecyclePoliciesHasBeenSet = true; m_lifecyclePolicies.push_back(value); return *this; }
85 inline PutLifecycleConfigurationRequest& AddLifecyclePolicies(LifecyclePolicy&& value) { m_lifecyclePoliciesHasBeenSet = true; m_lifecyclePolicies.push_back(std::move(value)); return *this; }
87 private:
88
89 Aws::String m_fileSystemId;
90 bool m_fileSystemIdHasBeenSet = false;
91
92 Aws::Vector<LifecyclePolicy> m_lifecyclePolicies;
93 bool m_lifecyclePoliciesHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace EFS
98} // namespace Aws
PutLifecycleConfigurationRequest & WithFileSystemId(const Aws::String &value)
PutLifecycleConfigurationRequest & AddLifecyclePolicies(LifecyclePolicy &&value)
PutLifecycleConfigurationRequest & WithFileSystemId(const char *value)
void SetLifecyclePolicies(const Aws::Vector< LifecyclePolicy > &value)
PutLifecycleConfigurationRequest & AddLifecyclePolicies(const LifecyclePolicy &value)
PutLifecycleConfigurationRequest & WithLifecyclePolicies(const Aws::Vector< LifecyclePolicy > &value)
void SetLifecyclePolicies(Aws::Vector< LifecyclePolicy > &&value)
AWS_EFS_API Aws::String SerializePayload() const override
const Aws::Vector< LifecyclePolicy > & GetLifecyclePolicies() const
PutLifecycleConfigurationRequest & WithFileSystemId(Aws::String &&value)
PutLifecycleConfigurationRequest & WithLifecyclePolicies(Aws::Vector< LifecyclePolicy > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector