AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
CreatePredefinedAttributeRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/connect/model/PredefinedAttributeValues.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/connect/model/InputPredefinedAttributeConfiguration.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Connect
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CONNECT_API CreatePredefinedAttributeRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreatePredefinedAttribute"; }
34
35 AWS_CONNECT_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
44 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
45 template<typename InstanceIdT = Aws::String>
46 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
47 template<typename InstanceIdT = Aws::String>
48 CreatePredefinedAttributeRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template<typename NameT = Aws::String>
58 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
59 template<typename NameT = Aws::String>
60 CreatePredefinedAttributeRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
62
64
67 inline const PredefinedAttributeValues& GetValues() const { return m_values; }
68 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
69 template<typename ValuesT = PredefinedAttributeValues>
70 void SetValues(ValuesT&& value) { m_valuesHasBeenSet = true; m_values = std::forward<ValuesT>(value); }
71 template<typename ValuesT = PredefinedAttributeValues>
72 CreatePredefinedAttributeRequest& WithValues(ValuesT&& value) { SetValues(std::forward<ValuesT>(value)); return *this;}
74
76
80 inline const Aws::Vector<Aws::String>& GetPurposes() const { return m_purposes; }
81 inline bool PurposesHasBeenSet() const { return m_purposesHasBeenSet; }
82 template<typename PurposesT = Aws::Vector<Aws::String>>
83 void SetPurposes(PurposesT&& value) { m_purposesHasBeenSet = true; m_purposes = std::forward<PurposesT>(value); }
84 template<typename PurposesT = Aws::Vector<Aws::String>>
85 CreatePredefinedAttributeRequest& WithPurposes(PurposesT&& value) { SetPurposes(std::forward<PurposesT>(value)); return *this;}
86 template<typename PurposesT = Aws::String>
87 CreatePredefinedAttributeRequest& AddPurposes(PurposesT&& value) { m_purposesHasBeenSet = true; m_purposes.emplace_back(std::forward<PurposesT>(value)); return *this; }
89
91
96 inline const InputPredefinedAttributeConfiguration& GetAttributeConfiguration() const { return m_attributeConfiguration; }
97 inline bool AttributeConfigurationHasBeenSet() const { return m_attributeConfigurationHasBeenSet; }
98 template<typename AttributeConfigurationT = InputPredefinedAttributeConfiguration>
99 void SetAttributeConfiguration(AttributeConfigurationT&& value) { m_attributeConfigurationHasBeenSet = true; m_attributeConfiguration = std::forward<AttributeConfigurationT>(value); }
100 template<typename AttributeConfigurationT = InputPredefinedAttributeConfiguration>
101 CreatePredefinedAttributeRequest& WithAttributeConfiguration(AttributeConfigurationT&& value) { SetAttributeConfiguration(std::forward<AttributeConfigurationT>(value)); return *this;}
103 private:
104
105 Aws::String m_instanceId;
106 bool m_instanceIdHasBeenSet = false;
107
108 Aws::String m_name;
109 bool m_nameHasBeenSet = false;
110
112 bool m_valuesHasBeenSet = false;
113
114 Aws::Vector<Aws::String> m_purposes;
115 bool m_purposesHasBeenSet = false;
116
117 InputPredefinedAttributeConfiguration m_attributeConfiguration;
118 bool m_attributeConfigurationHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace Connect
123} // namespace Aws
CreatePredefinedAttributeRequest & WithAttributeConfiguration(AttributeConfigurationT &&value)
const InputPredefinedAttributeConfiguration & GetAttributeConfiguration() const
CreatePredefinedAttributeRequest & AddPurposes(PurposesT &&value)
CreatePredefinedAttributeRequest & WithPurposes(PurposesT &&value)
CreatePredefinedAttributeRequest & WithValues(ValuesT &&value)
CreatePredefinedAttributeRequest & WithInstanceId(InstanceIdT &&value)
AWS_CONNECT_API CreatePredefinedAttributeRequest()=default
CreatePredefinedAttributeRequest & WithName(NameT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector