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/ssm-contacts/SSMContacts_EXPORTS.h> 8 #include <aws/ssm-contacts/SSMContactsRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace SSMContacts 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_SSMCONTACTS_API DeactivateContactChannelRequest : public SSMContactsRequest 22 { 23 public: 24 DeactivateContactChannelRequest(); 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 "DeactivateContactChannel"; } 31 32 Aws::String SerializePayload() const override; 33 34 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 35 36 37 /** 38 * <p>The Amazon Resource Name (ARN) of the contact channel you're 39 * deactivating.</p> 40 */ GetContactChannelId()41 inline const Aws::String& GetContactChannelId() const{ return m_contactChannelId; } 42 43 /** 44 * <p>The Amazon Resource Name (ARN) of the contact channel you're 45 * deactivating.</p> 46 */ ContactChannelIdHasBeenSet()47 inline bool ContactChannelIdHasBeenSet() const { return m_contactChannelIdHasBeenSet; } 48 49 /** 50 * <p>The Amazon Resource Name (ARN) of the contact channel you're 51 * deactivating.</p> 52 */ SetContactChannelId(const Aws::String & value)53 inline void SetContactChannelId(const Aws::String& value) { m_contactChannelIdHasBeenSet = true; m_contactChannelId = value; } 54 55 /** 56 * <p>The Amazon Resource Name (ARN) of the contact channel you're 57 * deactivating.</p> 58 */ SetContactChannelId(Aws::String && value)59 inline void SetContactChannelId(Aws::String&& value) { m_contactChannelIdHasBeenSet = true; m_contactChannelId = std::move(value); } 60 61 /** 62 * <p>The Amazon Resource Name (ARN) of the contact channel you're 63 * deactivating.</p> 64 */ SetContactChannelId(const char * value)65 inline void SetContactChannelId(const char* value) { m_contactChannelIdHasBeenSet = true; m_contactChannelId.assign(value); } 66 67 /** 68 * <p>The Amazon Resource Name (ARN) of the contact channel you're 69 * deactivating.</p> 70 */ WithContactChannelId(const Aws::String & value)71 inline DeactivateContactChannelRequest& WithContactChannelId(const Aws::String& value) { SetContactChannelId(value); return *this;} 72 73 /** 74 * <p>The Amazon Resource Name (ARN) of the contact channel you're 75 * deactivating.</p> 76 */ WithContactChannelId(Aws::String && value)77 inline DeactivateContactChannelRequest& WithContactChannelId(Aws::String&& value) { SetContactChannelId(std::move(value)); return *this;} 78 79 /** 80 * <p>The Amazon Resource Name (ARN) of the contact channel you're 81 * deactivating.</p> 82 */ WithContactChannelId(const char * value)83 inline DeactivateContactChannelRequest& WithContactChannelId(const char* value) { SetContactChannelId(value); return *this;} 84 85 private: 86 87 Aws::String m_contactChannelId; 88 bool m_contactChannelIdHasBeenSet; 89 }; 90 91 } // namespace Model 92 } // namespace SSMContacts 93 } // namespace Aws 94