com.amazonaws.services.wellarchitected.model.WorkloadJiraConfigurationOutput Maven / Gradle / Ivy
Show all versions of aws-java-sdk-wellarchitected Show documentation
/*
* 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.wellarchitected.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Workload-level: Output configuration of the Jira integration.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class WorkloadJiraConfigurationOutput implements Serializable, Cloneable, StructuredPojo {
/**
*
* Workload-level: Jira issue management status.
*
*/
private String issueManagementStatus;
/**
*
* Workload-level: Jira issue management type.
*
*/
private String issueManagementType;
/**
*
* Workload-level: Jira project key to sync workloads to.
*
*/
private String jiraProjectKey;
/**
*
* Workload-level: Status message on configuration of the Jira integration.
*
*/
private String statusMessage;
/**
*
* Workload-level: Jira issue management status.
*
*
* @param issueManagementStatus
* Workload-level: Jira issue management status.
* @see WorkloadIssueManagementStatus
*/
public void setIssueManagementStatus(String issueManagementStatus) {
this.issueManagementStatus = issueManagementStatus;
}
/**
*
* Workload-level: Jira issue management status.
*
*
* @return Workload-level: Jira issue management status.
* @see WorkloadIssueManagementStatus
*/
public String getIssueManagementStatus() {
return this.issueManagementStatus;
}
/**
*
* Workload-level: Jira issue management status.
*
*
* @param issueManagementStatus
* Workload-level: Jira issue management status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see WorkloadIssueManagementStatus
*/
public WorkloadJiraConfigurationOutput withIssueManagementStatus(String issueManagementStatus) {
setIssueManagementStatus(issueManagementStatus);
return this;
}
/**
*
* Workload-level: Jira issue management status.
*
*
* @param issueManagementStatus
* Workload-level: Jira issue management status.
* @return Returns a reference to this object so that method calls can be chained together.
* @see WorkloadIssueManagementStatus
*/
public WorkloadJiraConfigurationOutput withIssueManagementStatus(WorkloadIssueManagementStatus issueManagementStatus) {
this.issueManagementStatus = issueManagementStatus.toString();
return this;
}
/**
*
* Workload-level: Jira issue management type.
*
*
* @param issueManagementType
* Workload-level: Jira issue management type.
* @see IssueManagementType
*/
public void setIssueManagementType(String issueManagementType) {
this.issueManagementType = issueManagementType;
}
/**
*
* Workload-level: Jira issue management type.
*
*
* @return Workload-level: Jira issue management type.
* @see IssueManagementType
*/
public String getIssueManagementType() {
return this.issueManagementType;
}
/**
*
* Workload-level: Jira issue management type.
*
*
* @param issueManagementType
* Workload-level: Jira issue management type.
* @return Returns a reference to this object so that method calls can be chained together.
* @see IssueManagementType
*/
public WorkloadJiraConfigurationOutput withIssueManagementType(String issueManagementType) {
setIssueManagementType(issueManagementType);
return this;
}
/**
*
* Workload-level: Jira issue management type.
*
*
* @param issueManagementType
* Workload-level: Jira issue management type.
* @return Returns a reference to this object so that method calls can be chained together.
* @see IssueManagementType
*/
public WorkloadJiraConfigurationOutput withIssueManagementType(IssueManagementType issueManagementType) {
this.issueManagementType = issueManagementType.toString();
return this;
}
/**
*
* Workload-level: Jira project key to sync workloads to.
*
*
* @param jiraProjectKey
* Workload-level: Jira project key to sync workloads to.
*/
public void setJiraProjectKey(String jiraProjectKey) {
this.jiraProjectKey = jiraProjectKey;
}
/**
*
* Workload-level: Jira project key to sync workloads to.
*
*
* @return Workload-level: Jira project key to sync workloads to.
*/
public String getJiraProjectKey() {
return this.jiraProjectKey;
}
/**
*
* Workload-level: Jira project key to sync workloads to.
*
*
* @param jiraProjectKey
* Workload-level: Jira project key to sync workloads to.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public WorkloadJiraConfigurationOutput withJiraProjectKey(String jiraProjectKey) {
setJiraProjectKey(jiraProjectKey);
return this;
}
/**
*
* Workload-level: Status message on configuration of the Jira integration.
*
*
* @param statusMessage
* Workload-level: Status message on configuration of the Jira integration.
*/
public void setStatusMessage(String statusMessage) {
this.statusMessage = statusMessage;
}
/**
*
* Workload-level: Status message on configuration of the Jira integration.
*
*
* @return Workload-level: Status message on configuration of the Jira integration.
*/
public String getStatusMessage() {
return this.statusMessage;
}
/**
*
* Workload-level: Status message on configuration of the Jira integration.
*
*
* @param statusMessage
* Workload-level: Status message on configuration of the Jira integration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public WorkloadJiraConfigurationOutput 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 (getIssueManagementStatus() != null)
sb.append("IssueManagementStatus: ").append(getIssueManagementStatus()).append(",");
if (getIssueManagementType() != null)
sb.append("IssueManagementType: ").append(getIssueManagementType()).append(",");
if (getJiraProjectKey() != null)
sb.append("JiraProjectKey: ").append(getJiraProjectKey()).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 WorkloadJiraConfigurationOutput == false)
return false;
WorkloadJiraConfigurationOutput other = (WorkloadJiraConfigurationOutput) obj;
if (other.getIssueManagementStatus() == null ^ this.getIssueManagementStatus() == null)
return false;
if (other.getIssueManagementStatus() != null && other.getIssueManagementStatus().equals(this.getIssueManagementStatus()) == false)
return false;
if (other.getIssueManagementType() == null ^ this.getIssueManagementType() == null)
return false;
if (other.getIssueManagementType() != null && other.getIssueManagementType().equals(this.getIssueManagementType()) == false)
return false;
if (other.getJiraProjectKey() == null ^ this.getJiraProjectKey() == null)
return false;
if (other.getJiraProjectKey() != null && other.getJiraProjectKey().equals(this.getJiraProjectKey()) == 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 + ((getIssueManagementStatus() == null) ? 0 : getIssueManagementStatus().hashCode());
hashCode = prime * hashCode + ((getIssueManagementType() == null) ? 0 : getIssueManagementType().hashCode());
hashCode = prime * hashCode + ((getJiraProjectKey() == null) ? 0 : getJiraProjectKey().hashCode());
hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode());
return hashCode;
}
@Override
public WorkloadJiraConfigurationOutput clone() {
try {
return (WorkloadJiraConfigurationOutput) 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.wellarchitected.model.transform.WorkloadJiraConfigurationOutputMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}