/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace VPCLattice { namespace Model { /** */ class PutAuthPolicyRequest : public VPCLatticeRequest { public: AWS_VPCLATTICE_API PutAuthPolicyRequest(); // 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 "PutAuthPolicy"; } AWS_VPCLATTICE_API Aws::String SerializePayload() const override; /** *

The auth policy. The policy string in JSON must not contain newlines or blank * lines.

*/ inline const Aws::String& GetPolicy() const{ return m_policy; } /** *

The auth policy. The policy string in JSON must not contain newlines or blank * lines.

*/ inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; } /** *

The auth policy. The policy string in JSON must not contain newlines or blank * lines.

*/ inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; } /** *

The auth policy. The policy string in JSON must not contain newlines or blank * lines.

*/ inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); } /** *

The auth policy. The policy string in JSON must not contain newlines or blank * lines.

*/ inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); } /** *

The auth policy. The policy string in JSON must not contain newlines or blank * lines.

*/ inline PutAuthPolicyRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;} /** *

The auth policy. The policy string in JSON must not contain newlines or blank * lines.

*/ inline PutAuthPolicyRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;} /** *

The auth policy. The policy string in JSON must not contain newlines or blank * lines.

*/ inline PutAuthPolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;} /** *

The ID or Amazon Resource Name (ARN) of the service network or service for * which the policy is created.

*/ inline const Aws::String& GetResourceIdentifier() const{ return m_resourceIdentifier; } /** *

The ID or Amazon Resource Name (ARN) of the service network or service for * which the policy is created.

*/ inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; } /** *

The ID or Amazon Resource Name (ARN) of the service network or service for * which the policy is created.

*/ inline void SetResourceIdentifier(const Aws::String& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; } /** *

The ID or Amazon Resource Name (ARN) of the service network or service for * which the policy is created.

*/ inline void SetResourceIdentifier(Aws::String&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); } /** *

The ID or Amazon Resource Name (ARN) of the service network or service for * which the policy is created.

*/ inline void SetResourceIdentifier(const char* value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier.assign(value); } /** *

The ID or Amazon Resource Name (ARN) of the service network or service for * which the policy is created.

*/ inline PutAuthPolicyRequest& WithResourceIdentifier(const Aws::String& value) { SetResourceIdentifier(value); return *this;} /** *

The ID or Amazon Resource Name (ARN) of the service network or service for * which the policy is created.

*/ inline PutAuthPolicyRequest& WithResourceIdentifier(Aws::String&& value) { SetResourceIdentifier(std::move(value)); return *this;} /** *

The ID or Amazon Resource Name (ARN) of the service network or service for * which the policy is created.

*/ inline PutAuthPolicyRequest& WithResourceIdentifier(const char* value) { SetResourceIdentifier(value); return *this;} private: Aws::String m_policy; bool m_policyHasBeenSet = false; Aws::String m_resourceIdentifier; bool m_resourceIdentifierHasBeenSet = false; }; } // namespace Model } // namespace VPCLattice } // namespace Aws