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 GetFederationTokenRequest : public ConnectRequest 22 { 23 public: 24 GetFederationTokenRequest(); 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 "GetFederationToken"; } 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 GetFederationTokenRequest& 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 GetFederationTokenRequest& 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 GetFederationTokenRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} 82 83 private: 84 85 Aws::String m_instanceId; 86 bool m_instanceIdHasBeenSet; 87 }; 88 89 } // namespace Model 90 } // namespace Connect 91 } // namespace Aws 92