All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.private5g.model.StartNetworkResourceUpdateRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Private 5G module holds the client classes that are used for communicating with AWS Private 5G Service

The newest version!
/*
 * Copyright 2019-2024 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.private5g.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 StartNetworkResourceUpdateRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* Use this action to extend and automatically renew the commitment period for the radio unit. You can do the * following: *

*
    *
  • *

    * Change a 60-day commitment to a 1-year or 3-year commitment. The change is immediate and the hourly rate * decreases to the rate for the new commitment period. *

    *
  • *
  • *

    * Change a 1-year commitment to a 3-year commitment. The change is immediate and the hourly rate decreases to the * rate for the 3-year commitment period. *

    *
  • *
  • *

    * Set a 1-year commitment to automatically renew for an additional 1 year. The hourly rate for the additional year * will continue to be the same as your existing 1-year rate. *

    *
  • *
  • *

    * Set a 3-year commitment to automatically renew for an additional 1 year. The hourly rate for the additional year * will continue to be the same as your existing 3-year rate. *

    *
  • *
  • *

    * Turn off a previously-enabled automatic renewal on a 1-year or 3-year commitment. You cannot use the * automatic-renewal option for a 60-day commitment. *

    *
  • *
*

* For pricing, see Amazon Web Services Private 5G Pricing. *

*/ private CommitmentConfiguration commitmentConfiguration; /** *

* The Amazon Resource Name (ARN) of the network resource. *

*/ private String networkResourceArn; /** *

* The reason for the return. Providing a reason for a return is optional. *

*/ private String returnReason; /** *

* The shipping address. If you don't provide a shipping address when replacing or returning a network resource, we * use the address from the original order for the network resource. *

*/ private Address shippingAddress; /** *

* The update type. *

*
    *
  • *

    * REPLACE - Submits a request to replace a defective radio unit. We provide a shipping label that you * can use for the return process and we ship a replacement radio unit to you. *

    *
  • *
  • *

    * RETURN - Submits a request to return a radio unit that you no longer need. We provide a shipping * label that you can use for the return process. *

    *
  • *
  • *

    * COMMITMENT - Submits a request to change or renew the commitment period. If you choose this value, * then you must set commitmentConfiguration . *

    *
  • *
*/ private String updateType; /** *

* Use this action to extend and automatically renew the commitment period for the radio unit. You can do the * following: *

*
    *
  • *

    * Change a 60-day commitment to a 1-year or 3-year commitment. The change is immediate and the hourly rate * decreases to the rate for the new commitment period. *

    *
  • *
  • *

    * Change a 1-year commitment to a 3-year commitment. The change is immediate and the hourly rate decreases to the * rate for the 3-year commitment period. *

    *
  • *
  • *

    * Set a 1-year commitment to automatically renew for an additional 1 year. The hourly rate for the additional year * will continue to be the same as your existing 1-year rate. *

    *
  • *
  • *

    * Set a 3-year commitment to automatically renew for an additional 1 year. The hourly rate for the additional year * will continue to be the same as your existing 3-year rate. *

    *
  • *
  • *

    * Turn off a previously-enabled automatic renewal on a 1-year or 3-year commitment. You cannot use the * automatic-renewal option for a 60-day commitment. *

    *
  • *
*

* For pricing, see Amazon Web Services Private 5G Pricing. *

* * @param commitmentConfiguration * Use this action to extend and automatically renew the commitment period for the radio unit. You can do the * following:

*
    *
  • *

    * Change a 60-day commitment to a 1-year or 3-year commitment. The change is immediate and the hourly rate * decreases to the rate for the new commitment period. *

    *
  • *
  • *

    * Change a 1-year commitment to a 3-year commitment. The change is immediate and the hourly rate decreases * to the rate for the 3-year commitment period. *

    *
  • *
  • *

    * Set a 1-year commitment to automatically renew for an additional 1 year. The hourly rate for the * additional year will continue to be the same as your existing 1-year rate. *

    *
  • *
  • *

    * Set a 3-year commitment to automatically renew for an additional 1 year. The hourly rate for the * additional year will continue to be the same as your existing 3-year rate. *

    *
  • *
  • *

    * Turn off a previously-enabled automatic renewal on a 1-year or 3-year commitment. You cannot use the * automatic-renewal option for a 60-day commitment. *

    *
  • *
*

* For pricing, see Amazon Web Services Private 5G * Pricing. */ public void setCommitmentConfiguration(CommitmentConfiguration commitmentConfiguration) { this.commitmentConfiguration = commitmentConfiguration; } /** *

* Use this action to extend and automatically renew the commitment period for the radio unit. You can do the * following: *

*
    *
  • *

    * Change a 60-day commitment to a 1-year or 3-year commitment. The change is immediate and the hourly rate * decreases to the rate for the new commitment period. *

    *
  • *
  • *

    * Change a 1-year commitment to a 3-year commitment. The change is immediate and the hourly rate decreases to the * rate for the 3-year commitment period. *

    *
  • *
  • *

    * Set a 1-year commitment to automatically renew for an additional 1 year. The hourly rate for the additional year * will continue to be the same as your existing 1-year rate. *

    *
  • *
  • *

    * Set a 3-year commitment to automatically renew for an additional 1 year. The hourly rate for the additional year * will continue to be the same as your existing 3-year rate. *

    *
  • *
  • *

    * Turn off a previously-enabled automatic renewal on a 1-year or 3-year commitment. You cannot use the * automatic-renewal option for a 60-day commitment. *

    *
  • *
*

* For pricing, see Amazon Web Services Private 5G Pricing. *

* * @return Use this action to extend and automatically renew the commitment period for the radio unit. You can do * the following:

*
    *
  • *

    * Change a 60-day commitment to a 1-year or 3-year commitment. The change is immediate and the hourly rate * decreases to the rate for the new commitment period. *

    *
  • *
  • *

    * Change a 1-year commitment to a 3-year commitment. The change is immediate and the hourly rate decreases * to the rate for the 3-year commitment period. *

    *
  • *
  • *

    * Set a 1-year commitment to automatically renew for an additional 1 year. The hourly rate for the * additional year will continue to be the same as your existing 1-year rate. *

    *
  • *
  • *

    * Set a 3-year commitment to automatically renew for an additional 1 year. The hourly rate for the * additional year will continue to be the same as your existing 3-year rate. *

    *
  • *
  • *

    * Turn off a previously-enabled automatic renewal on a 1-year or 3-year commitment. You cannot use the * automatic-renewal option for a 60-day commitment. *

    *
  • *
*

* For pricing, see Amazon Web Services Private 5G * Pricing. */ public CommitmentConfiguration getCommitmentConfiguration() { return this.commitmentConfiguration; } /** *

* Use this action to extend and automatically renew the commitment period for the radio unit. You can do the * following: *

*
    *
  • *

    * Change a 60-day commitment to a 1-year or 3-year commitment. The change is immediate and the hourly rate * decreases to the rate for the new commitment period. *

    *
  • *
  • *

    * Change a 1-year commitment to a 3-year commitment. The change is immediate and the hourly rate decreases to the * rate for the 3-year commitment period. *

    *
  • *
  • *

    * Set a 1-year commitment to automatically renew for an additional 1 year. The hourly rate for the additional year * will continue to be the same as your existing 1-year rate. *

    *
  • *
  • *

    * Set a 3-year commitment to automatically renew for an additional 1 year. The hourly rate for the additional year * will continue to be the same as your existing 3-year rate. *

    *
  • *
  • *

    * Turn off a previously-enabled automatic renewal on a 1-year or 3-year commitment. You cannot use the * automatic-renewal option for a 60-day commitment. *

    *
  • *
*

* For pricing, see Amazon Web Services Private 5G Pricing. *

* * @param commitmentConfiguration * Use this action to extend and automatically renew the commitment period for the radio unit. You can do the * following:

*
    *
  • *

    * Change a 60-day commitment to a 1-year or 3-year commitment. The change is immediate and the hourly rate * decreases to the rate for the new commitment period. *

    *
  • *
  • *

    * Change a 1-year commitment to a 3-year commitment. The change is immediate and the hourly rate decreases * to the rate for the 3-year commitment period. *

    *
  • *
  • *

    * Set a 1-year commitment to automatically renew for an additional 1 year. The hourly rate for the * additional year will continue to be the same as your existing 1-year rate. *

    *
  • *
  • *

    * Set a 3-year commitment to automatically renew for an additional 1 year. The hourly rate for the * additional year will continue to be the same as your existing 3-year rate. *

    *
  • *
  • *

    * Turn off a previously-enabled automatic renewal on a 1-year or 3-year commitment. You cannot use the * automatic-renewal option for a 60-day commitment. *

    *
  • *
*

* For pricing, see Amazon Web Services Private 5G * Pricing. * @return Returns a reference to this object so that method calls can be chained together. */ public StartNetworkResourceUpdateRequest withCommitmentConfiguration(CommitmentConfiguration commitmentConfiguration) { setCommitmentConfiguration(commitmentConfiguration); return this; } /** *

* The Amazon Resource Name (ARN) of the network resource. *

* * @param networkResourceArn * The Amazon Resource Name (ARN) of the network resource. */ public void setNetworkResourceArn(String networkResourceArn) { this.networkResourceArn = networkResourceArn; } /** *

* The Amazon Resource Name (ARN) of the network resource. *

* * @return The Amazon Resource Name (ARN) of the network resource. */ public String getNetworkResourceArn() { return this.networkResourceArn; } /** *

* The Amazon Resource Name (ARN) of the network resource. *

* * @param networkResourceArn * The Amazon Resource Name (ARN) of the network resource. * @return Returns a reference to this object so that method calls can be chained together. */ public StartNetworkResourceUpdateRequest withNetworkResourceArn(String networkResourceArn) { setNetworkResourceArn(networkResourceArn); return this; } /** *

* The reason for the return. Providing a reason for a return is optional. *

* * @param returnReason * The reason for the return. Providing a reason for a return is optional. */ public void setReturnReason(String returnReason) { this.returnReason = returnReason; } /** *

* The reason for the return. Providing a reason for a return is optional. *

* * @return The reason for the return. Providing a reason for a return is optional. */ public String getReturnReason() { return this.returnReason; } /** *

* The reason for the return. Providing a reason for a return is optional. *

* * @param returnReason * The reason for the return. Providing a reason for a return is optional. * @return Returns a reference to this object so that method calls can be chained together. */ public StartNetworkResourceUpdateRequest withReturnReason(String returnReason) { setReturnReason(returnReason); return this; } /** *

* The shipping address. If you don't provide a shipping address when replacing or returning a network resource, we * use the address from the original order for the network resource. *

* * @param shippingAddress * The shipping address. If you don't provide a shipping address when replacing or returning a network * resource, we use the address from the original order for the network resource. */ public void setShippingAddress(Address shippingAddress) { this.shippingAddress = shippingAddress; } /** *

* The shipping address. If you don't provide a shipping address when replacing or returning a network resource, we * use the address from the original order for the network resource. *

* * @return The shipping address. If you don't provide a shipping address when replacing or returning a network * resource, we use the address from the original order for the network resource. */ public Address getShippingAddress() { return this.shippingAddress; } /** *

* The shipping address. If you don't provide a shipping address when replacing or returning a network resource, we * use the address from the original order for the network resource. *

* * @param shippingAddress * The shipping address. If you don't provide a shipping address when replacing or returning a network * resource, we use the address from the original order for the network resource. * @return Returns a reference to this object so that method calls can be chained together. */ public StartNetworkResourceUpdateRequest withShippingAddress(Address shippingAddress) { setShippingAddress(shippingAddress); return this; } /** *

* The update type. *

*
    *
  • *

    * REPLACE - Submits a request to replace a defective radio unit. We provide a shipping label that you * can use for the return process and we ship a replacement radio unit to you. *

    *
  • *
  • *

    * RETURN - Submits a request to return a radio unit that you no longer need. We provide a shipping * label that you can use for the return process. *

    *
  • *
  • *

    * COMMITMENT - Submits a request to change or renew the commitment period. If you choose this value, * then you must set commitmentConfiguration . *

    *
  • *
* * @param updateType * The update type.

*
    *
  • *

    * REPLACE - Submits a request to replace a defective radio unit. We provide a shipping label * that you can use for the return process and we ship a replacement radio unit to you. *

    *
  • *
  • *

    * RETURN - Submits a request to return a radio unit that you no longer need. We provide a * shipping label that you can use for the return process. *

    *
  • *
  • *

    * COMMITMENT - Submits a request to change or renew the commitment period. If you choose this * value, then you must set commitmentConfiguration . *

    *
  • * @see UpdateType */ public void setUpdateType(String updateType) { this.updateType = updateType; } /** *

    * The update type. *

    *
      *
    • *

      * REPLACE - Submits a request to replace a defective radio unit. We provide a shipping label that you * can use for the return process and we ship a replacement radio unit to you. *

      *
    • *
    • *

      * RETURN - Submits a request to return a radio unit that you no longer need. We provide a shipping * label that you can use for the return process. *

      *
    • *
    • *

      * COMMITMENT - Submits a request to change or renew the commitment period. If you choose this value, * then you must set commitmentConfiguration . *

      *
    • *
    * * @return The update type.

    *
      *
    • *

      * REPLACE - Submits a request to replace a defective radio unit. We provide a shipping label * that you can use for the return process and we ship a replacement radio unit to you. *

      *
    • *
    • *

      * RETURN - Submits a request to return a radio unit that you no longer need. We provide a * shipping label that you can use for the return process. *

      *
    • *
    • *

      * COMMITMENT - Submits a request to change or renew the commitment period. If you choose this * value, then you must set commitmentConfiguration . *

      *
    • * @see UpdateType */ public String getUpdateType() { return this.updateType; } /** *

      * The update type. *

      *
        *
      • *

        * REPLACE - Submits a request to replace a defective radio unit. We provide a shipping label that you * can use for the return process and we ship a replacement radio unit to you. *

        *
      • *
      • *

        * RETURN - Submits a request to return a radio unit that you no longer need. We provide a shipping * label that you can use for the return process. *

        *
      • *
      • *

        * COMMITMENT - Submits a request to change or renew the commitment period. If you choose this value, * then you must set commitmentConfiguration . *

        *
      • *
      * * @param updateType * The update type.

      *
        *
      • *

        * REPLACE - Submits a request to replace a defective radio unit. We provide a shipping label * that you can use for the return process and we ship a replacement radio unit to you. *

        *
      • *
      • *

        * RETURN - Submits a request to return a radio unit that you no longer need. We provide a * shipping label that you can use for the return process. *

        *
      • *
      • *

        * COMMITMENT - Submits a request to change or renew the commitment period. If you choose this * value, then you must set commitmentConfiguration . *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see UpdateType */ public StartNetworkResourceUpdateRequest withUpdateType(String updateType) { setUpdateType(updateType); return this; } /** *

        * The update type. *

        *
          *
        • *

          * REPLACE - Submits a request to replace a defective radio unit. We provide a shipping label that you * can use for the return process and we ship a replacement radio unit to you. *

          *
        • *
        • *

          * RETURN - Submits a request to return a radio unit that you no longer need. We provide a shipping * label that you can use for the return process. *

          *
        • *
        • *

          * COMMITMENT - Submits a request to change or renew the commitment period. If you choose this value, * then you must set commitmentConfiguration . *

          *
        • *
        * * @param updateType * The update type.

        *
          *
        • *

          * REPLACE - Submits a request to replace a defective radio unit. We provide a shipping label * that you can use for the return process and we ship a replacement radio unit to you. *

          *
        • *
        • *

          * RETURN - Submits a request to return a radio unit that you no longer need. We provide a * shipping label that you can use for the return process. *

          *
        • *
        • *

          * COMMITMENT - Submits a request to change or renew the commitment period. If you choose this * value, then you must set commitmentConfiguration . *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see UpdateType */ public StartNetworkResourceUpdateRequest withUpdateType(UpdateType updateType) { this.updateType = updateType.toString(); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCommitmentConfiguration() != null) sb.append("CommitmentConfiguration: ").append(getCommitmentConfiguration()).append(","); if (getNetworkResourceArn() != null) sb.append("NetworkResourceArn: ").append(getNetworkResourceArn()).append(","); if (getReturnReason() != null) sb.append("ReturnReason: ").append(getReturnReason()).append(","); if (getShippingAddress() != null) sb.append("ShippingAddress: ").append(getShippingAddress()).append(","); if (getUpdateType() != null) sb.append("UpdateType: ").append(getUpdateType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StartNetworkResourceUpdateRequest == false) return false; StartNetworkResourceUpdateRequest other = (StartNetworkResourceUpdateRequest) obj; if (other.getCommitmentConfiguration() == null ^ this.getCommitmentConfiguration() == null) return false; if (other.getCommitmentConfiguration() != null && other.getCommitmentConfiguration().equals(this.getCommitmentConfiguration()) == false) return false; if (other.getNetworkResourceArn() == null ^ this.getNetworkResourceArn() == null) return false; if (other.getNetworkResourceArn() != null && other.getNetworkResourceArn().equals(this.getNetworkResourceArn()) == false) return false; if (other.getReturnReason() == null ^ this.getReturnReason() == null) return false; if (other.getReturnReason() != null && other.getReturnReason().equals(this.getReturnReason()) == false) return false; if (other.getShippingAddress() == null ^ this.getShippingAddress() == null) return false; if (other.getShippingAddress() != null && other.getShippingAddress().equals(this.getShippingAddress()) == false) return false; if (other.getUpdateType() == null ^ this.getUpdateType() == null) return false; if (other.getUpdateType() != null && other.getUpdateType().equals(this.getUpdateType()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCommitmentConfiguration() == null) ? 0 : getCommitmentConfiguration().hashCode()); hashCode = prime * hashCode + ((getNetworkResourceArn() == null) ? 0 : getNetworkResourceArn().hashCode()); hashCode = prime * hashCode + ((getReturnReason() == null) ? 0 : getReturnReason().hashCode()); hashCode = prime * hashCode + ((getShippingAddress() == null) ? 0 : getShippingAddress().hashCode()); hashCode = prime * hashCode + ((getUpdateType() == null) ? 0 : getUpdateType().hashCode()); return hashCode; } @Override public StartNetworkResourceUpdateRequest clone() { return (StartNetworkResourceUpdateRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy