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/worklink/WorkLink_EXPORTS.h> 8 #include <aws/worklink/WorkLinkRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace WorkLink 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_WORKLINK_API SignOutUserRequest : public WorkLinkRequest 22 { 23 public: 24 SignOutUserRequest(); 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 "SignOutUser"; } 31 32 Aws::String SerializePayload() const override; 33 34 35 /** 36 * <p>The ARN of the fleet.</p> 37 */ GetFleetArn()38 inline const Aws::String& GetFleetArn() const{ return m_fleetArn; } 39 40 /** 41 * <p>The ARN of the fleet.</p> 42 */ FleetArnHasBeenSet()43 inline bool FleetArnHasBeenSet() const { return m_fleetArnHasBeenSet; } 44 45 /** 46 * <p>The ARN of the fleet.</p> 47 */ SetFleetArn(const Aws::String & value)48 inline void SetFleetArn(const Aws::String& value) { m_fleetArnHasBeenSet = true; m_fleetArn = value; } 49 50 /** 51 * <p>The ARN of the fleet.</p> 52 */ SetFleetArn(Aws::String && value)53 inline void SetFleetArn(Aws::String&& value) { m_fleetArnHasBeenSet = true; m_fleetArn = std::move(value); } 54 55 /** 56 * <p>The ARN of the fleet.</p> 57 */ SetFleetArn(const char * value)58 inline void SetFleetArn(const char* value) { m_fleetArnHasBeenSet = true; m_fleetArn.assign(value); } 59 60 /** 61 * <p>The ARN of the fleet.</p> 62 */ WithFleetArn(const Aws::String & value)63 inline SignOutUserRequest& WithFleetArn(const Aws::String& value) { SetFleetArn(value); return *this;} 64 65 /** 66 * <p>The ARN of the fleet.</p> 67 */ WithFleetArn(Aws::String && value)68 inline SignOutUserRequest& WithFleetArn(Aws::String&& value) { SetFleetArn(std::move(value)); return *this;} 69 70 /** 71 * <p>The ARN of the fleet.</p> 72 */ WithFleetArn(const char * value)73 inline SignOutUserRequest& WithFleetArn(const char* value) { SetFleetArn(value); return *this;} 74 75 76 /** 77 * <p>The name of the user.</p> 78 */ GetUsername()79 inline const Aws::String& GetUsername() const{ return m_username; } 80 81 /** 82 * <p>The name of the user.</p> 83 */ UsernameHasBeenSet()84 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; } 85 86 /** 87 * <p>The name of the user.</p> 88 */ SetUsername(const Aws::String & value)89 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; } 90 91 /** 92 * <p>The name of the user.</p> 93 */ SetUsername(Aws::String && value)94 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); } 95 96 /** 97 * <p>The name of the user.</p> 98 */ SetUsername(const char * value)99 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); } 100 101 /** 102 * <p>The name of the user.</p> 103 */ WithUsername(const Aws::String & value)104 inline SignOutUserRequest& WithUsername(const Aws::String& value) { SetUsername(value); return *this;} 105 106 /** 107 * <p>The name of the user.</p> 108 */ WithUsername(Aws::String && value)109 inline SignOutUserRequest& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;} 110 111 /** 112 * <p>The name of the user.</p> 113 */ WithUsername(const char * value)114 inline SignOutUserRequest& WithUsername(const char* value) { SetUsername(value); return *this;} 115 116 private: 117 118 Aws::String m_fleetArn; 119 bool m_fleetArnHasBeenSet; 120 121 Aws::String m_username; 122 bool m_usernameHasBeenSet; 123 }; 124 125 } // namespace Model 126 } // namespace WorkLink 127 } // namespace Aws 128