Package com.vmware.nsx_policy.model
Class OdsRunbookInvocationReport.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.OdsRunbookInvocationReport.Builder
-
- Enclosing class:
- OdsRunbookInvocationReport
public static final class OdsRunbookInvocationReport.Builder extends java.lang.ObjectBuilder class forOdsRunbookInvocationReport.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofOdsRunbookInvocationReport.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OdsRunbookInvocationReportbuild()OdsRunbookInvocationReport.BuildersetErrorDetail(java.lang.String errorDetail)The error detail of the invalid report.OdsRunbookInvocationReport.BuildersetInvalidReason(java.lang.String invalidReason)Possible values are:OdsRunbookInvocationReport.INVALID_REASON_TIMEOUTOdsRunbookInvocationReport.INVALID_REASON_CANCELLEDOdsRunbookInvocationReport.INVALID_REASON_INTERNAL_ERRORThe reason why this report is invalid.OdsRunbookInvocationReport.BuildersetInvocationId(java.lang.String invocationId)The universally unique identifier for invocation of an Online Diagnostic System Runbook.OdsRunbookInvocationReport.BuildersetRecommendationCode(java.lang.Long recommendationCode)Online Diagnostic System recommendation code of the runbook invocation.OdsRunbookInvocationReport.BuildersetRecommendationMessage(java.lang.String recommendationMessage)Online Diagnostic System recommendation message of the runbook invocation.OdsRunbookInvocationReport.BuildersetResultCode(java.lang.Long resultCode)Online Diagnostic System result code of the runbook invocation.OdsRunbookInvocationReport.BuildersetResultMessage(java.lang.String resultMessage)Online Diagnostic System result message of the runbook invocation.OdsRunbookInvocationReport.BuildersetStatus(OdsRunbookInvocationStatus status)OdsRunbookInvocationReport.BuildersetStepDetails(java.util.List<OdsRunbookInvocationStepInfo> stepDetails)Details of performed steps in the invocation of an Online Diagnostic System Runbook.OdsRunbookInvocationReport.BuildersetSysInfo(OdsRunbookSysInfo sysInfo)OdsRunbookInvocationReport.BuildersetTargetNode(java.lang.String targetNode)Identifier of an appliance node or transport node where the execution of an Online Diagnostic System Runbook happens.OdsRunbookInvocationReport.BuildersetTimestamp(java.lang.Long timestamp)The timestamp when the report of an Online Diagnostic System Runbook is generated in milliseconds epoch.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofOdsRunbookInvocationReport.
-
-
Method Detail
-
setErrorDetail
public OdsRunbookInvocationReport.Builder setErrorDetail(java.lang.String errorDetail)
The error detail of the invalid report. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
errorDetail- New value for the property.
-
setInvalidReason
public OdsRunbookInvocationReport.Builder setInvalidReason(java.lang.String invalidReason)
Possible values are: The reason why this report is invalid. TIMEOUT - The invocation is timeout. CANCELLED - The invocation is cancelled. INTERNAL_ERROR - The invocation ends up with error. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
invalidReason- New value for the property.
-
setInvocationId
public OdsRunbookInvocationReport.Builder setInvocationId(java.lang.String invocationId)
The universally unique identifier for invocation of an Online Diagnostic System Runbook. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
invocationId- New value for the property.
-
setRecommendationCode
public OdsRunbookInvocationReport.Builder setRecommendationCode(java.lang.Long recommendationCode)
Online Diagnostic System recommendation code of the runbook invocation. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
recommendationCode- New value for the property.
-
setRecommendationMessage
public OdsRunbookInvocationReport.Builder setRecommendationMessage(java.lang.String recommendationMessage)
Online Diagnostic System recommendation message of the runbook invocation. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
recommendationMessage- New value for the property.
-
setResultCode
public OdsRunbookInvocationReport.Builder setResultCode(java.lang.Long resultCode)
Online Diagnostic System result code of the runbook invocation. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
resultCode- New value for the property.
-
setResultMessage
public OdsRunbookInvocationReport.Builder setResultMessage(java.lang.String resultMessage)
Online Diagnostic System result message of the runbook invocation. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
resultMessage- New value for the property.
-
setStatus
public OdsRunbookInvocationReport.Builder setStatus(OdsRunbookInvocationStatus status)
- Parameters:
status- New value for the property.
-
setStepDetails
public OdsRunbookInvocationReport.Builder setStepDetails(java.util.List<OdsRunbookInvocationStepInfo> stepDetails)
Details of performed steps in the invocation of an Online Diagnostic System Runbook. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
stepDetails- New value for the property.
-
setSysInfo
public OdsRunbookInvocationReport.Builder setSysInfo(OdsRunbookSysInfo sysInfo)
- Parameters:
sysInfo- New value for the property.
-
setTargetNode
public OdsRunbookInvocationReport.Builder setTargetNode(java.lang.String targetNode)
Identifier of an appliance node or transport node where the execution of an Online Diagnostic System Runbook happens. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
targetNode- New value for the property.
-
setTimestamp
public OdsRunbookInvocationReport.Builder setTimestamp(java.lang.Long timestamp)
The timestamp when the report of an Online Diagnostic System Runbook is generated in milliseconds epoch. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
timestamp- New value for the property.
-
build
public OdsRunbookInvocationReport build()
-
-