AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ModifyMountTargetSecurityGroupsRequest.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 <utility>
12
13namespace Aws
14{
15namespace EFS
16{
17namespace Model
18{
19
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ModifyMountTargetSecurityGroups"; }
35
36 AWS_EFS_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetMountTargetId() const { return m_mountTargetId; }
44 inline bool MountTargetIdHasBeenSet() const { return m_mountTargetIdHasBeenSet; }
45 template<typename MountTargetIdT = Aws::String>
46 void SetMountTargetId(MountTargetIdT&& value) { m_mountTargetIdHasBeenSet = true; m_mountTargetId = std::forward<MountTargetIdT>(value); }
47 template<typename MountTargetIdT = Aws::String>
48 ModifyMountTargetSecurityGroupsRequest& WithMountTargetId(MountTargetIdT&& value) { SetMountTargetId(std::forward<MountTargetIdT>(value)); return *this;}
50
52
55 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const { return m_securityGroups; }
56 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
57 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
58 void SetSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::forward<SecurityGroupsT>(value); }
59 template<typename SecurityGroupsT = Aws::Vector<Aws::String>>
60 ModifyMountTargetSecurityGroupsRequest& WithSecurityGroups(SecurityGroupsT&& value) { SetSecurityGroups(std::forward<SecurityGroupsT>(value)); return *this;}
61 template<typename SecurityGroupsT = Aws::String>
62 ModifyMountTargetSecurityGroupsRequest& AddSecurityGroups(SecurityGroupsT&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.emplace_back(std::forward<SecurityGroupsT>(value)); return *this; }
64 private:
65
66 Aws::String m_mountTargetId;
67 bool m_mountTargetIdHasBeenSet = false;
68
69 Aws::Vector<Aws::String> m_securityGroups;
70 bool m_securityGroupsHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace EFS
75} // namespace Aws
AWS_EFS_API Aws::String SerializePayload() const override
ModifyMountTargetSecurityGroupsRequest & WithSecurityGroups(SecurityGroupsT &&value)
ModifyMountTargetSecurityGroupsRequest & AddSecurityGroups(SecurityGroupsT &&value)
ModifyMountTargetSecurityGroupsRequest & WithMountTargetId(MountTargetIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector