1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
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 <utility>
11 
12 namespace Aws
13 {
14 namespace Connect
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_CONNECT_API DisassociateSecurityKeyRequest : public ConnectRequest
22   {
23   public:
24     DisassociateSecurityKeyRequest();
25 
26     // Service request name is the Operation name which will send this request out,
27     // each operation should has unique request name, so that we can get operation's name from this request.
28     // Note: this is not true for response, multiple operations may have the same response name,
29     // so we can not get operation's name from response.
GetServiceRequestName()30     inline virtual const char* GetServiceRequestName() const override { return "DisassociateSecurityKey"; }
31 
32     Aws::String SerializePayload() const override;
33 
34 
35     /**
36      * <p>The identifier of the Amazon Connect instance. You can find the instanceId in
37      * the ARN of the instance.</p>
38      */
GetInstanceId()39     inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
40 
41     /**
42      * <p>The identifier of the Amazon Connect instance. You can find the instanceId in
43      * the ARN of the instance.</p>
44      */
InstanceIdHasBeenSet()45     inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
46 
47     /**
48      * <p>The identifier of the Amazon Connect instance. You can find the instanceId in
49      * the ARN of the instance.</p>
50      */
SetInstanceId(const Aws::String & value)51     inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
52 
53     /**
54      * <p>The identifier of the Amazon Connect instance. You can find the instanceId in
55      * the ARN of the instance.</p>
56      */
SetInstanceId(Aws::String && value)57     inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
58 
59     /**
60      * <p>The identifier of the Amazon Connect instance. You can find the instanceId in
61      * the ARN of the instance.</p>
62      */
SetInstanceId(const char * value)63     inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
64 
65     /**
66      * <p>The identifier of the Amazon Connect instance. You can find the instanceId in
67      * the ARN of the instance.</p>
68      */
WithInstanceId(const Aws::String & value)69     inline DisassociateSecurityKeyRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
70 
71     /**
72      * <p>The identifier of the Amazon Connect instance. You can find the instanceId in
73      * the ARN of the instance.</p>
74      */
WithInstanceId(Aws::String && value)75     inline DisassociateSecurityKeyRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
76 
77     /**
78      * <p>The identifier of the Amazon Connect instance. You can find the instanceId in
79      * the ARN of the instance.</p>
80      */
WithInstanceId(const char * value)81     inline DisassociateSecurityKeyRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
82 
83 
84     /**
85      * <p>The existing association identifier that uniquely identifies the resource
86      * type and storage config for the given instance ID.</p>
87      */
GetAssociationId()88     inline const Aws::String& GetAssociationId() const{ return m_associationId; }
89 
90     /**
91      * <p>The existing association identifier that uniquely identifies the resource
92      * type and storage config for the given instance ID.</p>
93      */
AssociationIdHasBeenSet()94     inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
95 
96     /**
97      * <p>The existing association identifier that uniquely identifies the resource
98      * type and storage config for the given instance ID.</p>
99      */
SetAssociationId(const Aws::String & value)100     inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
101 
102     /**
103      * <p>The existing association identifier that uniquely identifies the resource
104      * type and storage config for the given instance ID.</p>
105      */
SetAssociationId(Aws::String && value)106     inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
107 
108     /**
109      * <p>The existing association identifier that uniquely identifies the resource
110      * type and storage config for the given instance ID.</p>
111      */
SetAssociationId(const char * value)112     inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
113 
114     /**
115      * <p>The existing association identifier that uniquely identifies the resource
116      * type and storage config for the given instance ID.</p>
117      */
WithAssociationId(const Aws::String & value)118     inline DisassociateSecurityKeyRequest& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
119 
120     /**
121      * <p>The existing association identifier that uniquely identifies the resource
122      * type and storage config for the given instance ID.</p>
123      */
WithAssociationId(Aws::String && value)124     inline DisassociateSecurityKeyRequest& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
125 
126     /**
127      * <p>The existing association identifier that uniquely identifies the resource
128      * type and storage config for the given instance ID.</p>
129      */
WithAssociationId(const char * value)130     inline DisassociateSecurityKeyRequest& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
131 
132   private:
133 
134     Aws::String m_instanceId;
135     bool m_instanceIdHasBeenSet;
136 
137     Aws::String m_associationId;
138     bool m_associationIdHasBeenSet;
139   };
140 
141 } // namespace Model
142 } // namespace Connect
143 } // namespace Aws
144