/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.shield.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateProtectionRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* Friendly name for the Protection you are creating. *

*/ private String name; /** *

* The ARN (Amazon Resource Name) of the resource to be protected. *

*

* The ARN should be in one of the following formats: *

* */ private String resourceArn; /** *

* One or more tag key-value pairs for the Protection object that is created. *

*/ private java.util.List tags; /** *

* Friendly name for the Protection you are creating. *

* * @param name * Friendly name for the Protection you are creating. */ public void setName(String name) { this.name = name; } /** *

* Friendly name for the Protection you are creating. *

* * @return Friendly name for the Protection you are creating. */ public String getName() { return this.name; } /** *

* Friendly name for the Protection you are creating. *

* * @param name * Friendly name for the Protection you are creating. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateProtectionRequest withName(String name) { setName(name); return this; } /** *

* The ARN (Amazon Resource Name) of the resource to be protected. *

*

* The ARN should be in one of the following formats: *

* * * @param resourceArn * The ARN (Amazon Resource Name) of the resource to be protected.

*

* The ARN should be in one of the following formats: *

*