AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateUseCaseRequest.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/UseCaseType.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Connect
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CONNECT_API CreateUseCaseRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateUseCase"; }
33
34 AWS_CONNECT_API Aws::String SerializePayload() const override;
35
36
38
43 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
44 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
45 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
46 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
47 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
48 inline CreateUseCaseRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
49 inline CreateUseCaseRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
50 inline CreateUseCaseRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
52
54
57 inline const Aws::String& GetIntegrationAssociationId() const{ return m_integrationAssociationId; }
58 inline bool IntegrationAssociationIdHasBeenSet() const { return m_integrationAssociationIdHasBeenSet; }
59 inline void SetIntegrationAssociationId(const Aws::String& value) { m_integrationAssociationIdHasBeenSet = true; m_integrationAssociationId = value; }
60 inline void SetIntegrationAssociationId(Aws::String&& value) { m_integrationAssociationIdHasBeenSet = true; m_integrationAssociationId = std::move(value); }
61 inline void SetIntegrationAssociationId(const char* value) { m_integrationAssociationIdHasBeenSet = true; m_integrationAssociationId.assign(value); }
64 inline CreateUseCaseRequest& WithIntegrationAssociationId(const char* value) { SetIntegrationAssociationId(value); return *this;}
66
68
72 inline const UseCaseType& GetUseCaseType() const{ return m_useCaseType; }
73 inline bool UseCaseTypeHasBeenSet() const { return m_useCaseTypeHasBeenSet; }
74 inline void SetUseCaseType(const UseCaseType& value) { m_useCaseTypeHasBeenSet = true; m_useCaseType = value; }
75 inline void SetUseCaseType(UseCaseType&& value) { m_useCaseTypeHasBeenSet = true; m_useCaseType = std::move(value); }
76 inline CreateUseCaseRequest& WithUseCaseType(const UseCaseType& value) { SetUseCaseType(value); return *this;}
77 inline CreateUseCaseRequest& WithUseCaseType(UseCaseType&& value) { SetUseCaseType(std::move(value)); return *this;}
79
81
85 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
86 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
87 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
88 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
89 inline CreateUseCaseRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
90 inline CreateUseCaseRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
91 inline CreateUseCaseRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
92 inline CreateUseCaseRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
93 inline CreateUseCaseRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
94 inline CreateUseCaseRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
95 inline CreateUseCaseRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
96 inline CreateUseCaseRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
97 inline CreateUseCaseRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
99 private:
100
101 Aws::String m_instanceId;
102 bool m_instanceIdHasBeenSet = false;
103
104 Aws::String m_integrationAssociationId;
105 bool m_integrationAssociationIdHasBeenSet = false;
106
107 UseCaseType m_useCaseType;
108 bool m_useCaseTypeHasBeenSet = false;
109
111 bool m_tagsHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace Connect
116} // namespace Aws
CreateUseCaseRequest & AddTags(Aws::String &&key, const char *value)
AWS_CONNECT_API Aws::String SerializePayload() const override
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateUseCaseRequest & WithIntegrationAssociationId(const Aws::String &value)
void SetUseCaseType(const UseCaseType &value)
CreateUseCaseRequest & AddTags(const Aws::String &key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateUseCaseRequest & WithInstanceId(const Aws::String &value)
void SetIntegrationAssociationId(const Aws::String &value)
CreateUseCaseRequest & WithIntegrationAssociationId(const char *value)
CreateUseCaseRequest & WithInstanceId(const char *value)
CreateUseCaseRequest & WithIntegrationAssociationId(Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateUseCaseRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateUseCaseRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateUseCaseRequest & WithInstanceId(Aws::String &&value)
CreateUseCaseRequest & WithUseCaseType(const UseCaseType &value)
CreateUseCaseRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateUseCaseRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateUseCaseRequest & AddTags(const char *key, Aws::String &&value)
void SetIntegrationAssociationId(Aws::String &&value)
CreateUseCaseRequest & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetInstanceId(const Aws::String &value)
CreateUseCaseRequest & AddTags(const char *key, const char *value)
CreateUseCaseRequest & WithUseCaseType(UseCaseType &&value)
const Aws::String & GetIntegrationAssociationId() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String