/** * 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 MediaStore { namespace Model { /** */ class PutContainerPolicyRequest : public MediaStoreRequest { public: AWS_MEDIASTORE_API PutContainerPolicyRequest(); // 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 "PutContainerPolicy"; } AWS_MEDIASTORE_API Aws::String SerializePayload() const override; AWS_MEDIASTORE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the container.

*/ inline const Aws::String& GetContainerName() const{ return m_containerName; } /** *

The name of the container.

*/ inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; } /** *

The name of the container.

*/ inline void SetContainerName(const Aws::String& value) { m_containerNameHasBeenSet = true; m_containerName = value; } /** *

The name of the container.

*/ inline void SetContainerName(Aws::String&& value) { m_containerNameHasBeenSet = true; m_containerName = std::move(value); } /** *

The name of the container.

*/ inline void SetContainerName(const char* value) { m_containerNameHasBeenSet = true; m_containerName.assign(value); } /** *

The name of the container.

*/ inline PutContainerPolicyRequest& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;} /** *

The name of the container.

*/ inline PutContainerPolicyRequest& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;} /** *

The name of the container.

*/ inline PutContainerPolicyRequest& WithContainerName(const char* value) { SetContainerName(value); return *this;} /** *

The contents of the policy, which includes the following:

  • *

    One Version tag

  • One Statement tag * that contains the standard tags for the policy.

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

The contents of the policy, which includes the following:

  • *

    One Version tag

  • One Statement tag * that contains the standard tags for the policy.

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

The contents of the policy, which includes the following:

  • *

    One Version tag

  • One Statement tag * that contains the standard tags for the policy.

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

The contents of the policy, which includes the following:

  • *

    One Version tag

  • One Statement tag * that contains the standard tags for the policy.

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

The contents of the policy, which includes the following:

  • *

    One Version tag

  • One Statement tag * that contains the standard tags for the policy.

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

The contents of the policy, which includes the following:

  • *

    One Version tag

  • One Statement tag * that contains the standard tags for the policy.

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

The contents of the policy, which includes the following:

  • *

    One Version tag

  • One Statement tag * that contains the standard tags for the policy.

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

The contents of the policy, which includes the following:

  • *

    One Version tag

  • One Statement tag * that contains the standard tags for the policy.

*/ inline PutContainerPolicyRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;} private: Aws::String m_containerName; bool m_containerNameHasBeenSet = false; Aws::String m_policy; bool m_policyHasBeenSet = false; }; } // namespace Model } // namespace MediaStore } // namespace Aws