Package gov.nist.secauto.oscal.lib.model
Class Response
- java.lang.Object
-
- gov.nist.secauto.oscal.lib.model.Response
-
@MetaschemaAssembly(formalName="Risk Response", description="Describes either recommended or an actual plan for addressing the risk.", name="response", metaschema=OscalAssessmentCommonMetaschema.class) @AllowedValues(level=ERROR,target="prop[has-oscal-namespace(\'http://csrc.nist.gov/ns/oscal\')]/@name",values=@AllowedValue(value="type",description="")) @AllowedValues(level=ERROR,target="prop[has-oscal-namespace(\'http://csrc.nist.gov/ns/oscal\') and @name=\'type\']/@value",values={@AllowedValue(value="avoid",description="The risk will be eliminated."),@AllowedValue(value="mitigate",description="The risk will be reduced."),@AllowedValue(value="transfer",description="The risk will be transferred to another organization or entity."),@AllowedValue(value="accept",description="The risk will continue to exist without further efforts to address it. (Sometimes referred to as \"Operationally required\")"),@AllowedValue(value="share",description="The risk will be partially transferred to another organization or entity."),@AllowedValue(value="contingency",description="Plans will be made to address the risk impact if the risk occurs. (This is a form of mitigation.)"),@AllowedValue(value="none",description="No response, such as when the identified risk is found to be a false positive.")}) public class Response extends Object
Describes either recommended or an actual plan for addressing the risk.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Response.RequiredAsset
Identifies an asset required to achieve remediation.
-
Constructor Summary
Constructors Constructor Description Response()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addLink(Link item)
Add a newLink
item to the underlying collection.boolean
addOrigin(Origin item)
Add a newOrigin
item to the underlying collection.boolean
addProp(Property item)
Add a newProperty
item to the underlying collection.boolean
addRequiredAsset(Response.RequiredAsset item)
Add a newResponse.RequiredAsset
item to the underlying collection.boolean
addTask(Task item)
Add a newTask
item to the underlying collection.gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline
getDescription()
String
getLifecycle()
List<Link>
getLinks()
List<Origin>
getOrigins()
List<Property>
getProps()
gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline
getRemarks()
List<Response.RequiredAsset>
getRequiredAssets()
List<Task>
getTasks()
gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine
getTitle()
UUID
getUuid()
boolean
removeLink(Link item)
Remove the first matchingLink
item from the underlying collection.boolean
removeOrigin(Origin item)
Remove the first matchingOrigin
item from the underlying collection.boolean
removeProp(Property item)
Remove the first matchingProperty
item from the underlying collection.boolean
removeRequiredAsset(Response.RequiredAsset item)
Remove the first matchingResponse.RequiredAsset
item from the underlying collection.boolean
removeTask(Task item)
Remove the first matchingTask
item from the underlying collection.void
setDescription(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
void
setLifecycle(String value)
void
setLinks(List<Link> value)
void
setOrigins(List<Origin> value)
void
setProps(List<Property> value)
void
setRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
void
setRequiredAssets(List<Response.RequiredAsset> value)
void
setTasks(List<Task> value)
void
setTitle(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine value)
void
setUuid(UUID value)
String
toString()
-
-
-
Constructor Detail
-
Response
public Response()
-
-
Method Detail
-
getLifecycle
public String getLifecycle()
-
setLifecycle
public void setLifecycle(String value)
-
getTitle
public gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine getTitle()
-
setTitle
public void setTitle(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupLine value)
-
getDescription
public gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline getDescription()
-
setDescription
public void setDescription(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
-
addProp
public boolean addProp(Property item)
Add a newProperty
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeProp
public boolean removeProp(Property item)
Remove the first matchingProperty
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
addLink
public boolean addLink(Link item)
Add a newLink
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeLink
public boolean removeLink(Link item)
Remove the first matchingLink
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getOrigins
public List<Origin> getOrigins()
-
setOrigins
public void setOrigins(List<Origin> value)
-
addOrigin
public boolean addOrigin(Origin item)
Add a newOrigin
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeOrigin
public boolean removeOrigin(Origin item)
Remove the first matchingOrigin
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getRequiredAssets
public List<Response.RequiredAsset> getRequiredAssets()
-
setRequiredAssets
public void setRequiredAssets(List<Response.RequiredAsset> value)
-
addRequiredAsset
public boolean addRequiredAsset(Response.RequiredAsset item)
Add a newResponse.RequiredAsset
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeRequiredAsset
public boolean removeRequiredAsset(Response.RequiredAsset item)
Remove the first matchingResponse.RequiredAsset
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
addTask
public boolean addTask(Task item)
Add a newTask
item to the underlying collection.- Parameters:
item
- the item to add- Returns:
true
-
removeTask
public boolean removeTask(Task item)
Remove the first matchingTask
item from the underlying collection.- Parameters:
item
- the item to remove- Returns:
true
if the item was removed orfalse
otherwise
-
getRemarks
public gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline getRemarks()
-
setRemarks
public void setRemarks(gov.nist.secauto.metaschema.model.common.datatype.markup.MarkupMultiline value)
-
-