/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The input for the DetachThingPrincipal operation.See Also:
* AWS
* API Reference
The name of the thing.
*/ inline const Aws::String& GetThingName() const{ return m_thingName; } /** *The name of the thing.
*/ inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; } /** *The name of the thing.
*/ inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; } /** *The name of the thing.
*/ inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); } /** *The name of the thing.
*/ inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); } /** *The name of the thing.
*/ inline DetachThingPrincipalRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;} /** *The name of the thing.
*/ inline DetachThingPrincipalRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;} /** *The name of the thing.
*/ inline DetachThingPrincipalRequest& WithThingName(const char* value) { SetThingName(value); return *this;} /** *If the principal is a certificate, this value must be ARN of the certificate. * If the principal is an Amazon Cognito identity, this value must be the ID of the * Amazon Cognito identity.
*/ inline const Aws::String& GetPrincipal() const{ return m_principal; } /** *If the principal is a certificate, this value must be ARN of the certificate. * If the principal is an Amazon Cognito identity, this value must be the ID of the * Amazon Cognito identity.
*/ inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; } /** *If the principal is a certificate, this value must be ARN of the certificate. * If the principal is an Amazon Cognito identity, this value must be the ID of the * Amazon Cognito identity.
*/ inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; } /** *If the principal is a certificate, this value must be ARN of the certificate. * If the principal is an Amazon Cognito identity, this value must be the ID of the * Amazon Cognito identity.
*/ inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); } /** *If the principal is a certificate, this value must be ARN of the certificate. * If the principal is an Amazon Cognito identity, this value must be the ID of the * Amazon Cognito identity.
*/ inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); } /** *If the principal is a certificate, this value must be ARN of the certificate. * If the principal is an Amazon Cognito identity, this value must be the ID of the * Amazon Cognito identity.
*/ inline DetachThingPrincipalRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;} /** *If the principal is a certificate, this value must be ARN of the certificate. * If the principal is an Amazon Cognito identity, this value must be the ID of the * Amazon Cognito identity.
*/ inline DetachThingPrincipalRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;} /** *If the principal is a certificate, this value must be ARN of the certificate. * If the principal is an Amazon Cognito identity, this value must be the ID of the * Amazon Cognito identity.
*/ inline DetachThingPrincipalRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;} private: Aws::String m_thingName; bool m_thingNameHasBeenSet = false; Aws::String m_principal; bool m_principalHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws