AWS SDK for C++

AWS SDK for C++ Version 1.11.807

Loading...
Searching...
No Matches
GetAlternateContactRequest.h
1
6#pragma once
7#include <aws/account/AccountRequest.h>
8#include <aws/account/Account_EXPORTS.h>
9#include <aws/account/model/AlternateContactType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Account {
16namespace Model {
17
21 public:
22 AWS_ACCOUNT_API GetAlternateContactRequest() = 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 "GetAlternateContact"; }
29
30 AWS_ACCOUNT_API Aws::String SerializePayload() const override;
31
33
36 inline AlternateContactType GetAlternateContactType() const { return m_alternateContactType; }
37 inline bool AlternateContactTypeHasBeenSet() const { return m_alternateContactTypeHasBeenSet; }
39 m_alternateContactTypeHasBeenSet = true;
40 m_alternateContactType = value;
41 }
44 return *this;
45 }
47
49
71 inline const Aws::String& GetAccountId() const { return m_accountId; }
72 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
73 template <typename AccountIdT = Aws::String>
74 void SetAccountId(AccountIdT&& value) {
75 m_accountIdHasBeenSet = true;
76 m_accountId = std::forward<AccountIdT>(value);
77 }
78 template <typename AccountIdT = Aws::String>
80 SetAccountId(std::forward<AccountIdT>(value));
81 return *this;
82 }
84 private:
86
87 Aws::String m_accountId;
88 bool m_alternateContactTypeHasBeenSet = false;
89 bool m_accountIdHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace Account
94} // namespace Aws
AWS_ACCOUNT_API GetAlternateContactRequest()=default
virtual const char * GetServiceRequestName() const override
GetAlternateContactRequest & WithAlternateContactType(AlternateContactType value)
AWS_ACCOUNT_API Aws::String SerializePayload() const override
GetAlternateContactRequest & WithAccountId(AccountIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String