AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssociateSourceServersRequest.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:
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 "AssociateSourceServers"; }
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 inline void SetAccountID(const Aws::String& value) { m_accountIDHasBeenSet = true; m_accountID = value; }
43 inline void SetAccountID(Aws::String&& value) { m_accountIDHasBeenSet = true; m_accountID = std::move(value); }
44 inline void SetAccountID(const char* value) { m_accountIDHasBeenSet = true; m_accountID.assign(value); }
45 inline AssociateSourceServersRequest& WithAccountID(const Aws::String& value) { SetAccountID(value); return *this;}
46 inline AssociateSourceServersRequest& WithAccountID(Aws::String&& value) { SetAccountID(std::move(value)); return *this;}
47 inline AssociateSourceServersRequest& WithAccountID(const char* value) { SetAccountID(value); return *this;}
49
51
54 inline const Aws::String& GetApplicationID() const{ return m_applicationID; }
55 inline bool ApplicationIDHasBeenSet() const { return m_applicationIDHasBeenSet; }
56 inline void SetApplicationID(const Aws::String& value) { m_applicationIDHasBeenSet = true; m_applicationID = value; }
57 inline void SetApplicationID(Aws::String&& value) { m_applicationIDHasBeenSet = true; m_applicationID = std::move(value); }
58 inline void SetApplicationID(const char* value) { m_applicationIDHasBeenSet = true; m_applicationID.assign(value); }
59 inline AssociateSourceServersRequest& WithApplicationID(const Aws::String& value) { SetApplicationID(value); return *this;}
60 inline AssociateSourceServersRequest& WithApplicationID(Aws::String&& value) { SetApplicationID(std::move(value)); return *this;}
61 inline AssociateSourceServersRequest& WithApplicationID(const char* value) { SetApplicationID(value); return *this;}
63
65
68 inline const Aws::Vector<Aws::String>& GetSourceServerIDs() const{ return m_sourceServerIDs; }
69 inline bool SourceServerIDsHasBeenSet() const { return m_sourceServerIDsHasBeenSet; }
70 inline void SetSourceServerIDs(const Aws::Vector<Aws::String>& value) { m_sourceServerIDsHasBeenSet = true; m_sourceServerIDs = value; }
71 inline void SetSourceServerIDs(Aws::Vector<Aws::String>&& value) { m_sourceServerIDsHasBeenSet = true; m_sourceServerIDs = std::move(value); }
74 inline AssociateSourceServersRequest& AddSourceServerIDs(const Aws::String& value) { m_sourceServerIDsHasBeenSet = true; m_sourceServerIDs.push_back(value); return *this; }
75 inline AssociateSourceServersRequest& AddSourceServerIDs(Aws::String&& value) { m_sourceServerIDsHasBeenSet = true; m_sourceServerIDs.push_back(std::move(value)); return *this; }
76 inline AssociateSourceServersRequest& AddSourceServerIDs(const char* value) { m_sourceServerIDsHasBeenSet = true; m_sourceServerIDs.push_back(value); return *this; }
78 private:
79
80 Aws::String m_accountID;
81 bool m_accountIDHasBeenSet = false;
82
83 Aws::String m_applicationID;
84 bool m_applicationIDHasBeenSet = false;
85
86 Aws::Vector<Aws::String> m_sourceServerIDs;
87 bool m_sourceServerIDsHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace mgn
92} // namespace Aws
void SetSourceServerIDs(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetSourceServerIDs() const
AssociateSourceServersRequest & AddSourceServerIDs(const Aws::String &value)
AssociateSourceServersRequest & WithApplicationID(Aws::String &&value)
AssociateSourceServersRequest & WithAccountID(const Aws::String &value)
AssociateSourceServersRequest & WithApplicationID(const Aws::String &value)
AssociateSourceServersRequest & AddSourceServerIDs(const char *value)
void SetSourceServerIDs(Aws::Vector< Aws::String > &&value)
AWS_MGN_API Aws::String SerializePayload() const override
AssociateSourceServersRequest & WithSourceServerIDs(const Aws::Vector< Aws::String > &value)
AssociateSourceServersRequest & AddSourceServerIDs(Aws::String &&value)
AssociateSourceServersRequest & WithApplicationID(const char *value)
AssociateSourceServersRequest & WithSourceServerIDs(Aws::Vector< Aws::String > &&value)
AssociateSourceServersRequest & WithAccountID(const char *value)
AssociateSourceServersRequest & WithAccountID(Aws::String &&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