AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 inline void SetMountTargetId(const Aws::String& value) { m_mountTargetIdHasBeenSet = true; m_mountTargetId = value; }
46 inline void SetMountTargetId(Aws::String&& value) { m_mountTargetIdHasBeenSet = true; m_mountTargetId = std::move(value); }
47 inline void SetMountTargetId(const char* value) { m_mountTargetIdHasBeenSet = true; m_mountTargetId.assign(value); }
49 inline ModifyMountTargetSecurityGroupsRequest& WithMountTargetId(Aws::String&& value) { SetMountTargetId(std::move(value)); return *this;}
50 inline ModifyMountTargetSecurityGroupsRequest& WithMountTargetId(const char* value) { SetMountTargetId(value); return *this;}
52
54
57 inline const Aws::Vector<Aws::String>& GetSecurityGroups() const{ return m_securityGroups; }
58 inline bool SecurityGroupsHasBeenSet() const { return m_securityGroupsHasBeenSet; }
59 inline void SetSecurityGroups(const Aws::Vector<Aws::String>& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = value; }
60 inline void SetSecurityGroups(Aws::Vector<Aws::String>&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups = std::move(value); }
63 inline ModifyMountTargetSecurityGroupsRequest& AddSecurityGroups(const Aws::String& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
64 inline ModifyMountTargetSecurityGroupsRequest& AddSecurityGroups(Aws::String&& value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(std::move(value)); return *this; }
65 inline ModifyMountTargetSecurityGroupsRequest& AddSecurityGroups(const char* value) { m_securityGroupsHasBeenSet = true; m_securityGroups.push_back(value); return *this; }
67 private:
68
69 Aws::String m_mountTargetId;
70 bool m_mountTargetIdHasBeenSet = false;
71
72 Aws::Vector<Aws::String> m_securityGroups;
73 bool m_securityGroupsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace EFS
78} // namespace Aws
ModifyMountTargetSecurityGroupsRequest & WithMountTargetId(const Aws::String &value)
ModifyMountTargetSecurityGroupsRequest & WithMountTargetId(const char *value)
AWS_EFS_API Aws::String SerializePayload() const override
ModifyMountTargetSecurityGroupsRequest & AddSecurityGroups(const Aws::String &value)
ModifyMountTargetSecurityGroupsRequest & WithMountTargetId(Aws::String &&value)
ModifyMountTargetSecurityGroupsRequest & WithSecurityGroups(Aws::Vector< Aws::String > &&value)
ModifyMountTargetSecurityGroupsRequest & AddSecurityGroups(Aws::String &&value)
ModifyMountTargetSecurityGroupsRequest & AddSecurityGroups(const char *value)
ModifyMountTargetSecurityGroupsRequest & WithSecurityGroups(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector