AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
UpdateMountTargetRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/s3files/S3FilesRequest.h>
10#include <aws/s3files/S3Files_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace S3Files {
16namespace Model {
17
21 public:
22 AWS_S3FILES_API UpdateMountTargetRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateMountTarget"; }
29
30 AWS_S3FILES_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetMountTargetId() const { return m_mountTargetId; }
37 inline bool MountTargetIdHasBeenSet() const { return m_mountTargetIdHasBeenSet; }
38 template <typename MountTargetIdT = Aws::String>
39 void SetMountTargetId(MountTargetIdT&& value) {
40 m_mountTargetIdHasBeenSet = true;
41 m_mountTargetId = std::forward<MountTargetIdT>(value);
42 }
43 template <typename MountTargetIdT = Aws::String>
45 SetMountTargetId(std::forward<MountTargetIdT>(value));
46 return *this;
47 }
49
51
56 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
57 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
58 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
59 void SetSecurityGroups(SecurityGroupsT&& value) {
60 m_securityGroupsHasBeenSet = true;
61 m_securityGroups = std::forward<SecurityGroupsT>(value);
62 }
63 template <typename SecurityGroupsT = Aws::Vector<Aws::String>>
64 UpdateMountTargetRequest& WithSecurityGroups(SecurityGroupsT&& value) {
65 SetSecurityGroups(std::forward<SecurityGroupsT>(value));
66 return *this;
67 }
68 template <typename SecurityGroupsT = Aws::String>
69 UpdateMountTargetRequest& AddSecurityGroups(SecurityGroupsT&& value) {
70 m_securityGroupsHasBeenSet = true;
71 m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_mountTargetId;
77
78 Aws::Vector<Aws::String> m_securityGroups;
79 bool m_mountTargetIdHasBeenSet = false;
80 bool m_securityGroupsHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace S3Files
85} // namespace Aws
AWS_S3FILES_API Aws::String SerializePayload() const override
UpdateMountTargetRequest & WithMountTargetId(MountTargetIdT &&value)
AWS_S3FILES_API UpdateMountTargetRequest()=default
UpdateMountTargetRequest & WithSecurityGroups(SecurityGroupsT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroups() const
UpdateMountTargetRequest & AddSecurityGroups(SecurityGroupsT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector