AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
45 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
46 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
47 inline ListContactsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
48 inline ListContactsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
49 inline ListContactsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
51
53
56 inline int GetMaxResults() const{ return m_maxResults; }
57 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
58 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
59 inline ListContactsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
61
63
66 inline const Aws::String& GetAliasPrefix() const{ return m_aliasPrefix; }
67 inline bool AliasPrefixHasBeenSet() const { return m_aliasPrefixHasBeenSet; }
68 inline void SetAliasPrefix(const Aws::String& value) { m_aliasPrefixHasBeenSet = true; m_aliasPrefix = value; }
69 inline void SetAliasPrefix(Aws::String&& value) { m_aliasPrefixHasBeenSet = true; m_aliasPrefix = std::move(value); }
70 inline void SetAliasPrefix(const char* value) { m_aliasPrefixHasBeenSet = true; m_aliasPrefix.assign(value); }
71 inline ListContactsRequest& WithAliasPrefix(const Aws::String& value) { SetAliasPrefix(value); return *this;}
72 inline ListContactsRequest& WithAliasPrefix(Aws::String&& value) { SetAliasPrefix(std::move(value)); return *this;}
73 inline ListContactsRequest& WithAliasPrefix(const char* value) { SetAliasPrefix(value); return *this;}
75
77
81 inline const ContactType& GetType() const{ return m_type; }
82 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
83 inline void SetType(const ContactType& value) { m_typeHasBeenSet = true; m_type = value; }
84 inline void SetType(ContactType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
85 inline ListContactsRequest& WithType(const ContactType& value) { SetType(value); return *this;}
86 inline ListContactsRequest& WithType(ContactType&& value) { SetType(std::move(value)); return *this;}
88 private:
89
90 Aws::String m_nextToken;
91 bool m_nextTokenHasBeenSet = false;
92
93 int m_maxResults;
94 bool m_maxResultsHasBeenSet = false;
95
96 Aws::String m_aliasPrefix;
97 bool m_aliasPrefixHasBeenSet = false;
98
99 ContactType m_type;
100 bool m_typeHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace SSMContacts
105} // namespace Aws
ListContactsRequest & WithType(ContactType &&value)
ListContactsRequest & WithAliasPrefix(const char *value)
virtual const char * GetServiceRequestName() const override
AWS_SSMCONTACTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListContactsRequest & WithMaxResults(int value)
AWS_SSMCONTACTS_API Aws::String SerializePayload() const override
ListContactsRequest & WithAliasPrefix(const Aws::String &value)
void SetAliasPrefix(const Aws::String &value)
ListContactsRequest & WithNextToken(const char *value)
ListContactsRequest & WithAliasPrefix(Aws::String &&value)
ListContactsRequest & WithNextToken(Aws::String &&value)
ListContactsRequest & WithType(const ContactType &value)
ListContactsRequest & WithNextToken(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String