/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/resource-explorer-2/ResourceExplorer2_EXPORTS.h> #include <aws/resource-explorer-2/ResourceExplorer2Request.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility> namespace Aws { namespace ResourceExplorer2 { namespace Model { /** */ class AssociateDefaultViewRequest : public ResourceExplorer2Request { public: AWS_RESOURCEEXPLORER2_API AssociateDefaultViewRequest(); // 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 "AssociateDefaultView"; } AWS_RESOURCEEXPLORER2_API Aws::String SerializePayload() const override; /** * <p>The <a * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon * resource name (ARN)</a> of the view to set as the default for the Amazon Web * Services Region and Amazon Web Services account in which you call this * operation. The specified view must already exist in the called Region.</p> */ inline const Aws::String& GetViewArn() const{ return m_viewArn; } /** * <p>The <a * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon * resource name (ARN)</a> of the view to set as the default for the Amazon Web * Services Region and Amazon Web Services account in which you call this * operation. The specified view must already exist in the called Region.</p> */ inline bool ViewArnHasBeenSet() const { return m_viewArnHasBeenSet; } /** * <p>The <a * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon * resource name (ARN)</a> of the view to set as the default for the Amazon Web * Services Region and Amazon Web Services account in which you call this * operation. The specified view must already exist in the called Region.</p> */ inline void SetViewArn(const Aws::String& value) { m_viewArnHasBeenSet = true; m_viewArn = value; } /** * <p>The <a * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon * resource name (ARN)</a> of the view to set as the default for the Amazon Web * Services Region and Amazon Web Services account in which you call this * operation. The specified view must already exist in the called Region.</p> */ inline void SetViewArn(Aws::String&& value) { m_viewArnHasBeenSet = true; m_viewArn = std::move(value); } /** * <p>The <a * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon * resource name (ARN)</a> of the view to set as the default for the Amazon Web * Services Region and Amazon Web Services account in which you call this * operation. The specified view must already exist in the called Region.</p> */ inline void SetViewArn(const char* value) { m_viewArnHasBeenSet = true; m_viewArn.assign(value); } /** * <p>The <a * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon * resource name (ARN)</a> of the view to set as the default for the Amazon Web * Services Region and Amazon Web Services account in which you call this * operation. The specified view must already exist in the called Region.</p> */ inline AssociateDefaultViewRequest& WithViewArn(const Aws::String& value) { SetViewArn(value); return *this;} /** * <p>The <a * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon * resource name (ARN)</a> of the view to set as the default for the Amazon Web * Services Region and Amazon Web Services account in which you call this * operation. The specified view must already exist in the called Region.</p> */ inline AssociateDefaultViewRequest& WithViewArn(Aws::String&& value) { SetViewArn(std::move(value)); return *this;} /** * <p>The <a * href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon * resource name (ARN)</a> of the view to set as the default for the Amazon Web * Services Region and Amazon Web Services account in which you call this * operation. The specified view must already exist in the called Region.</p> */ inline AssociateDefaultViewRequest& WithViewArn(const char* value) { SetViewArn(value); return *this;} private: Aws::String m_viewArn; bool m_viewArnHasBeenSet = false; }; } // namespace Model } // namespace ResourceExplorer2 } // namespace Aws