AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
GetContactResult.h
1
6#pragma once
7#include <aws/ssm-contacts/SSMContacts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm-contacts/model/ContactType.h>
10#include <aws/ssm-contacts/model/Plan.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace SSMContacts
26{
27namespace Model
28{
30 {
31 public:
32 AWS_SSMCONTACTS_API GetContactResult() = default;
35
36
38
41 inline const Aws::String& GetContactArn() const { return m_contactArn; }
42 template<typename ContactArnT = Aws::String>
43 void SetContactArn(ContactArnT&& value) { m_contactArnHasBeenSet = true; m_contactArn = std::forward<ContactArnT>(value); }
44 template<typename ContactArnT = Aws::String>
45 GetContactResult& WithContactArn(ContactArnT&& value) { SetContactArn(std::forward<ContactArnT>(value)); return *this;}
47
49
53 inline const Aws::String& GetAlias() const { return m_alias; }
54 template<typename AliasT = Aws::String>
55 void SetAlias(AliasT&& value) { m_aliasHasBeenSet = true; m_alias = std::forward<AliasT>(value); }
56 template<typename AliasT = Aws::String>
57 GetContactResult& WithAlias(AliasT&& value) { SetAlias(std::forward<AliasT>(value)); return *this;}
59
61
64 inline const Aws::String& GetDisplayName() const { return m_displayName; }
65 template<typename DisplayNameT = Aws::String>
66 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
67 template<typename DisplayNameT = Aws::String>
68 GetContactResult& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
70
72
76 inline ContactType GetType() const { return m_type; }
77 inline void SetType(ContactType value) { m_typeHasBeenSet = true; m_type = value; }
78 inline GetContactResult& WithType(ContactType value) { SetType(value); return *this;}
80
82
86 inline const Plan& GetPlan() const { return m_plan; }
87 template<typename PlanT = Plan>
88 void SetPlan(PlanT&& value) { m_planHasBeenSet = true; m_plan = std::forward<PlanT>(value); }
89 template<typename PlanT = Plan>
90 GetContactResult& WithPlan(PlanT&& value) { SetPlan(std::forward<PlanT>(value)); return *this;}
92
94
95 inline const Aws::String& GetRequestId() const { return m_requestId; }
96 template<typename RequestIdT = Aws::String>
97 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
98 template<typename RequestIdT = Aws::String>
99 GetContactResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
101 private:
102
103 Aws::String m_contactArn;
104 bool m_contactArnHasBeenSet = false;
105
106 Aws::String m_alias;
107 bool m_aliasHasBeenSet = false;
108
109 Aws::String m_displayName;
110 bool m_displayNameHasBeenSet = false;
111
113 bool m_typeHasBeenSet = false;
114
115 Plan m_plan;
116 bool m_planHasBeenSet = false;
117
118 Aws::String m_requestId;
119 bool m_requestIdHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace SSMContacts
124} // namespace Aws
AWS_SSMCONTACTS_API GetContactResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRequestId() const
void SetDisplayName(DisplayNameT &&value)
const Aws::String & GetDisplayName() const
GetContactResult & WithAlias(AliasT &&value)
GetContactResult & WithPlan(PlanT &&value)
GetContactResult & WithRequestId(RequestIdT &&value)
GetContactResult & WithContactArn(ContactArnT &&value)
AWS_SSMCONTACTS_API GetContactResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_SSMCONTACTS_API GetContactResult()=default
GetContactResult & WithDisplayName(DisplayNameT &&value)
const Aws::String & GetContactArn() const
GetContactResult & WithType(ContactType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue