AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DisassociateSourceServersRequest.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/mgn/MgnRequest.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 mgn
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_MGN_API DisassociateSourceServersRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "DisassociateSourceServers"; }
32
33 AWS_MGN_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetAccountID() const { return m_accountID; }
41 inline bool AccountIDHasBeenSet() const { return m_accountIDHasBeenSet; }
42 template<typename AccountIDT = Aws::String>
43 void SetAccountID(AccountIDT&& value) { m_accountIDHasBeenSet = true; m_accountID = std::forward<AccountIDT>(value); }
44 template<typename AccountIDT = Aws::String>
45 DisassociateSourceServersRequest& WithAccountID(AccountIDT&& value) { SetAccountID(std::forward<AccountIDT>(value)); return *this;}
47
49
52 inline const Aws::String& GetApplicationID() const { return m_applicationID; }
53 inline bool ApplicationIDHasBeenSet() const { return m_applicationIDHasBeenSet; }
54 template<typename ApplicationIDT = Aws::String>
55 void SetApplicationID(ApplicationIDT&& value) { m_applicationIDHasBeenSet = true; m_applicationID = std::forward<ApplicationIDT>(value); }
56 template<typename ApplicationIDT = Aws::String>
57 DisassociateSourceServersRequest& WithApplicationID(ApplicationIDT&& value) { SetApplicationID(std::forward<ApplicationIDT>(value)); return *this;}
59
61
64 inline const Aws::Vector<Aws::String>& GetSourceServerIDs() const { return m_sourceServerIDs; }
65 inline bool SourceServerIDsHasBeenSet() const { return m_sourceServerIDsHasBeenSet; }
66 template<typename SourceServerIDsT = Aws::Vector<Aws::String>>
67 void SetSourceServerIDs(SourceServerIDsT&& value) { m_sourceServerIDsHasBeenSet = true; m_sourceServerIDs = std::forward<SourceServerIDsT>(value); }
68 template<typename SourceServerIDsT = Aws::Vector<Aws::String>>
69 DisassociateSourceServersRequest& WithSourceServerIDs(SourceServerIDsT&& value) { SetSourceServerIDs(std::forward<SourceServerIDsT>(value)); return *this;}
70 template<typename SourceServerIDsT = Aws::String>
71 DisassociateSourceServersRequest& AddSourceServerIDs(SourceServerIDsT&& value) { m_sourceServerIDsHasBeenSet = true; m_sourceServerIDs.emplace_back(std::forward<SourceServerIDsT>(value)); return *this; }
73 private:
74
75 Aws::String m_accountID;
76 bool m_accountIDHasBeenSet = false;
77
78 Aws::String m_applicationID;
79 bool m_applicationIDHasBeenSet = false;
80
81 Aws::Vector<Aws::String> m_sourceServerIDs;
82 bool m_sourceServerIDsHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace mgn
87} // namespace Aws
DisassociateSourceServersRequest & WithSourceServerIDs(SourceServerIDsT &&value)
DisassociateSourceServersRequest & AddSourceServerIDs(SourceServerIDsT &&value)
const Aws::Vector< Aws::String > & GetSourceServerIDs() const
DisassociateSourceServersRequest & WithApplicationID(ApplicationIDT &&value)
AWS_MGN_API Aws::String SerializePayload() const override
DisassociateSourceServersRequest & WithAccountID(AccountIDT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector