AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListContactsRequest.h
1
6#pragma once
7#include <aws/ssm-contacts/SSMContacts_EXPORTS.h>
8#include <aws/ssm-contacts/SSMContactsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ssm-contacts/model/ContactType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SSMContacts
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_SSMCONTACTS_API ListContactsRequest() = 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 "ListContacts"; }
32
33 AWS_SSMCONTACTS_API Aws::String SerializePayload() const override;
34
35 AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
42 inline const Aws::String& GetNextToken() const { return m_nextToken; }
43 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
44 template<typename NextTokenT = Aws::String>
45 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
46 template<typename NextTokenT = Aws::String>
47 ListContactsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
49
51
54 inline int GetMaxResults() const { return m_maxResults; }
55 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
56 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
57 inline ListContactsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
59
61
64 inline const Aws::String& GetAliasPrefix() const { return m_aliasPrefix; }
65 inline bool AliasPrefixHasBeenSet() const { return m_aliasPrefixHasBeenSet; }
66 template<typename AliasPrefixT = Aws::String>
67 void SetAliasPrefix(AliasPrefixT&& value) { m_aliasPrefixHasBeenSet = true; m_aliasPrefix = std::forward<AliasPrefixT>(value); }
68 template<typename AliasPrefixT = Aws::String>
69 ListContactsRequest& WithAliasPrefix(AliasPrefixT&& value) { SetAliasPrefix(std::forward<AliasPrefixT>(value)); return *this;}
71
73
77 inline ContactType GetType() const { return m_type; }
78 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
79 inline void SetType(ContactType value) { m_typeHasBeenSet = true; m_type = value; }
80 inline ListContactsRequest& WithType(ContactType value) { SetType(value); return *this;}
82 private:
83
84 Aws::String m_nextToken;
85 bool m_nextTokenHasBeenSet = false;
86
87 int m_maxResults{0};
88 bool m_maxResultsHasBeenSet = false;
89
90 Aws::String m_aliasPrefix;
91 bool m_aliasPrefixHasBeenSet = false;
92
94 bool m_typeHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace SSMContacts
99} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_SSMCONTACTS_API ListContactsRequest()=default
ListContactsRequest & WithType(ContactType value)
ListContactsRequest & WithAliasPrefix(AliasPrefixT &&value)
AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListContactsRequest & WithMaxResults(int value)
AWS_SSMCONTACTS_API Aws::String SerializePayload() const override
ListContactsRequest & WithNextToken(NextTokenT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String