/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Lightsail { namespace Model { /** */ class GetContactMethodsRequest : public LightsailRequest { public: AWS_LIGHTSAIL_API GetContactMethodsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetContactMethods"; } AWS_LIGHTSAIL_API Aws::String SerializePayload() const override; AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The protocols used to send notifications, such as Email, or * SMS (text messaging).

Specify a protocol in your request to * return information about a specific contact method protocol.

*/ inline const Aws::Vector& GetProtocols() const{ return m_protocols; } /** *

The protocols used to send notifications, such as Email, or * SMS (text messaging).

Specify a protocol in your request to * return information about a specific contact method protocol.

*/ inline bool ProtocolsHasBeenSet() const { return m_protocolsHasBeenSet; } /** *

The protocols used to send notifications, such as Email, or * SMS (text messaging).

Specify a protocol in your request to * return information about a specific contact method protocol.

*/ inline void SetProtocols(const Aws::Vector& value) { m_protocolsHasBeenSet = true; m_protocols = value; } /** *

The protocols used to send notifications, such as Email, or * SMS (text messaging).

Specify a protocol in your request to * return information about a specific contact method protocol.

*/ inline void SetProtocols(Aws::Vector&& value) { m_protocolsHasBeenSet = true; m_protocols = std::move(value); } /** *

The protocols used to send notifications, such as Email, or * SMS (text messaging).

Specify a protocol in your request to * return information about a specific contact method protocol.

*/ inline GetContactMethodsRequest& WithProtocols(const Aws::Vector& value) { SetProtocols(value); return *this;} /** *

The protocols used to send notifications, such as Email, or * SMS (text messaging).

Specify a protocol in your request to * return information about a specific contact method protocol.

*/ inline GetContactMethodsRequest& WithProtocols(Aws::Vector&& value) { SetProtocols(std::move(value)); return *this;} /** *

The protocols used to send notifications, such as Email, or * SMS (text messaging).

Specify a protocol in your request to * return information about a specific contact method protocol.

*/ inline GetContactMethodsRequest& AddProtocols(const ContactProtocol& value) { m_protocolsHasBeenSet = true; m_protocols.push_back(value); return *this; } /** *

The protocols used to send notifications, such as Email, or * SMS (text messaging).

Specify a protocol in your request to * return information about a specific contact method protocol.

*/ inline GetContactMethodsRequest& AddProtocols(ContactProtocol&& value) { m_protocolsHasBeenSet = true; m_protocols.push_back(std::move(value)); return *this; } private: Aws::Vector m_protocols; bool m_protocolsHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws