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

com.amazonaws.services.controltower.model.BaselineOperation Maven / Gradle / Ivy

/*
 * 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.controltower.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* An object of shape BaselineOperation, returning details about the specified Baseline * operation ID. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class BaselineOperation implements Serializable, Cloneable, StructuredPojo { /** *

* The end time of the operation (if applicable), in ISO 8601 format. *

*/ private java.util.Date endTime; /** *

* The identifier of the specified operation. *

*/ private String operationIdentifier; /** *

* An enumerated type (enum) with possible values of ENABLE_BASELINE, * DISABLE_BASELINE, UPDATE_ENABLED_BASELINE, or RESET_ENABLED_BASELINE. *

*/ private String operationType; /** *

* The start time of the operation, in ISO 8601 format. *

*/ private java.util.Date startTime; /** *

* An enumerated type (enum) with possible values of SUCCEEDED, FAILED, or * IN_PROGRESS. *

*/ private String status; /** *

* A status message that gives more information about the operation's status, if applicable. *

*/ private String statusMessage; /** *

* The end time of the operation (if applicable), in ISO 8601 format. *

* * @param endTime * The end time of the operation (if applicable), in ISO 8601 format. */ public void setEndTime(java.util.Date endTime) { this.endTime = endTime; } /** *

* The end time of the operation (if applicable), in ISO 8601 format. *

* * @return The end time of the operation (if applicable), in ISO 8601 format. */ public java.util.Date getEndTime() { return this.endTime; } /** *

* The end time of the operation (if applicable), in ISO 8601 format. *

* * @param endTime * The end time of the operation (if applicable), in ISO 8601 format. * @return Returns a reference to this object so that method calls can be chained together. */ public BaselineOperation withEndTime(java.util.Date endTime) { setEndTime(endTime); return this; } /** *

* The identifier of the specified operation. *

* * @param operationIdentifier * The identifier of the specified operation. */ public void setOperationIdentifier(String operationIdentifier) { this.operationIdentifier = operationIdentifier; } /** *

* The identifier of the specified operation. *

* * @return The identifier of the specified operation. */ public String getOperationIdentifier() { return this.operationIdentifier; } /** *

* The identifier of the specified operation. *

* * @param operationIdentifier * The identifier of the specified operation. * @return Returns a reference to this object so that method calls can be chained together. */ public BaselineOperation withOperationIdentifier(String operationIdentifier) { setOperationIdentifier(operationIdentifier); return this; } /** *

* An enumerated type (enum) with possible values of ENABLE_BASELINE, * DISABLE_BASELINE, UPDATE_ENABLED_BASELINE, or RESET_ENABLED_BASELINE. *

* * @param operationType * An enumerated type (enum) with possible values of ENABLE_BASELINE, * DISABLE_BASELINE, UPDATE_ENABLED_BASELINE, or * RESET_ENABLED_BASELINE. * @see BaselineOperationType */ public void setOperationType(String operationType) { this.operationType = operationType; } /** *

* An enumerated type (enum) with possible values of ENABLE_BASELINE, * DISABLE_BASELINE, UPDATE_ENABLED_BASELINE, or RESET_ENABLED_BASELINE. *

* * @return An enumerated type (enum) with possible values of ENABLE_BASELINE, * DISABLE_BASELINE, UPDATE_ENABLED_BASELINE, or * RESET_ENABLED_BASELINE. * @see BaselineOperationType */ public String getOperationType() { return this.operationType; } /** *

* An enumerated type (enum) with possible values of ENABLE_BASELINE, * DISABLE_BASELINE, UPDATE_ENABLED_BASELINE, or RESET_ENABLED_BASELINE. *

* * @param operationType * An enumerated type (enum) with possible values of ENABLE_BASELINE, * DISABLE_BASELINE, UPDATE_ENABLED_BASELINE, or * RESET_ENABLED_BASELINE. * @return Returns a reference to this object so that method calls can be chained together. * @see BaselineOperationType */ public BaselineOperation withOperationType(String operationType) { setOperationType(operationType); return this; } /** *

* An enumerated type (enum) with possible values of ENABLE_BASELINE, * DISABLE_BASELINE, UPDATE_ENABLED_BASELINE, or RESET_ENABLED_BASELINE. *

* * @param operationType * An enumerated type (enum) with possible values of ENABLE_BASELINE, * DISABLE_BASELINE, UPDATE_ENABLED_BASELINE, or * RESET_ENABLED_BASELINE. * @return Returns a reference to this object so that method calls can be chained together. * @see BaselineOperationType */ public BaselineOperation withOperationType(BaselineOperationType operationType) { this.operationType = operationType.toString(); return this; } /** *

* The start time of the operation, in ISO 8601 format. *

* * @param startTime * The start time of the operation, in ISO 8601 format. */ public void setStartTime(java.util.Date startTime) { this.startTime = startTime; } /** *

* The start time of the operation, in ISO 8601 format. *

* * @return The start time of the operation, in ISO 8601 format. */ public java.util.Date getStartTime() { return this.startTime; } /** *

* The start time of the operation, in ISO 8601 format. *

* * @param startTime * The start time of the operation, in ISO 8601 format. * @return Returns a reference to this object so that method calls can be chained together. */ public BaselineOperation withStartTime(java.util.Date startTime) { setStartTime(startTime); return this; } /** *

* An enumerated type (enum) with possible values of SUCCEEDED, FAILED, or * IN_PROGRESS. *

* * @param status * An enumerated type (enum) with possible values of SUCCEEDED, FAILED * , or IN_PROGRESS. * @see BaselineOperationStatus */ public void setStatus(String status) { this.status = status; } /** *

* An enumerated type (enum) with possible values of SUCCEEDED, FAILED, or * IN_PROGRESS. *

* * @return An enumerated type (enum) with possible values of SUCCEEDED, * FAILED, or IN_PROGRESS. * @see BaselineOperationStatus */ public String getStatus() { return this.status; } /** *

* An enumerated type (enum) with possible values of SUCCEEDED, FAILED, or * IN_PROGRESS. *

* * @param status * An enumerated type (enum) with possible values of SUCCEEDED, FAILED * , or IN_PROGRESS. * @return Returns a reference to this object so that method calls can be chained together. * @see BaselineOperationStatus */ public BaselineOperation withStatus(String status) { setStatus(status); return this; } /** *

* An enumerated type (enum) with possible values of SUCCEEDED, FAILED, or * IN_PROGRESS. *

* * @param status * An enumerated type (enum) with possible values of SUCCEEDED, FAILED * , or IN_PROGRESS. * @return Returns a reference to this object so that method calls can be chained together. * @see BaselineOperationStatus */ public BaselineOperation withStatus(BaselineOperationStatus status) { this.status = status.toString(); return this; } /** *

* A status message that gives more information about the operation's status, if applicable. *

* * @param statusMessage * A status message that gives more information about the operation's status, if applicable. */ public void setStatusMessage(String statusMessage) { this.statusMessage = statusMessage; } /** *

* A status message that gives more information about the operation's status, if applicable. *

* * @return A status message that gives more information about the operation's status, if applicable. */ public String getStatusMessage() { return this.statusMessage; } /** *

* A status message that gives more information about the operation's status, if applicable. *

* * @param statusMessage * A status message that gives more information about the operation's status, if applicable. * @return Returns a reference to this object so that method calls can be chained together. */ public BaselineOperation withStatusMessage(String statusMessage) { setStatusMessage(statusMessage); 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 (getEndTime() != null) sb.append("EndTime: ").append(getEndTime()).append(","); if (getOperationIdentifier() != null) sb.append("OperationIdentifier: ").append(getOperationIdentifier()).append(","); if (getOperationType() != null) sb.append("OperationType: ").append(getOperationType()).append(","); if (getStartTime() != null) sb.append("StartTime: ").append(getStartTime()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStatusMessage() != null) sb.append("StatusMessage: ").append(getStatusMessage()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof BaselineOperation == false) return false; BaselineOperation other = (BaselineOperation) obj; if (other.getEndTime() == null ^ this.getEndTime() == null) return false; if (other.getEndTime() != null && other.getEndTime().equals(this.getEndTime()) == false) return false; if (other.getOperationIdentifier() == null ^ this.getOperationIdentifier() == null) return false; if (other.getOperationIdentifier() != null && other.getOperationIdentifier().equals(this.getOperationIdentifier()) == false) return false; if (other.getOperationType() == null ^ this.getOperationType() == null) return false; if (other.getOperationType() != null && other.getOperationType().equals(this.getOperationType()) == false) return false; if (other.getStartTime() == null ^ this.getStartTime() == null) return false; if (other.getStartTime() != null && other.getStartTime().equals(this.getStartTime()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getStatusMessage() == null ^ this.getStatusMessage() == null) return false; if (other.getStatusMessage() != null && other.getStatusMessage().equals(this.getStatusMessage()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEndTime() == null) ? 0 : getEndTime().hashCode()); hashCode = prime * hashCode + ((getOperationIdentifier() == null) ? 0 : getOperationIdentifier().hashCode()); hashCode = prime * hashCode + ((getOperationType() == null) ? 0 : getOperationType().hashCode()); hashCode = prime * hashCode + ((getStartTime() == null) ? 0 : getStartTime().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); return hashCode; } @Override public BaselineOperation clone() { try { return (BaselineOperation) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.controltower.model.transform.BaselineOperationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy